1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR c++/31903 // Test for anonymous namespace internal linkage, for typeinfo // { dg-do compile } // { dg-final { scan-assembler-not "globl.*_ZTIN*3fooE" } } #include <typeinfo> namespace { class foo { virtual void bar(); }; } const std::type_info &X = typeid(foo);