1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// { dg-options "-fabi-version=9" } // { dg-final { scan-assembler "_ZGVZN1N1FEvE4Name" } } namespace std { __extension__ inline namespace __cxx11 __attribute__((abi_tag("cxx11"))) { struct String { String(); }; } } namespace N { inline void F() { { static std::String Name; } } void F2() { F(); } }