Debian Codegraph @

gcc/testsuite/g++.dg/ext/visibility/anon4.C

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