https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116909
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- auto get_tests() noexcept { extern const test_signature *const tests_begin[]; extern const test_signature *const tests_end[]; const test_signature *const * b = tests_begin; asm("":"+r"(b)); const test_signature *const * e = tests_end; asm("":"+r"(e)); return std::span<test_signature* const>(b, e); }