summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/anon4.C
blob: 6d5d58ec347300a8757043f3bd1a6df1e85e429f (plain)
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);