summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/typeinfo2.C
blob: 54f541d850075a2afb84a712b7584c3e4db8ff38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR c++/35368
// { dg-require-visibility "" }

#pragma GCC visibility push (hidden)

struct A
{
  A();
  virtual ~A() { }
};

A::A()
{
}

void foo(A *a)
{
  delete a;
}

// { dg-final { scan-not-hidden "_ZTVN10__cxxabiv117__class_type_infoE" } }
// { dg-final { scan-hidden "_ZTI1A" } }
// { dg-final { scan-hidden "_ZTV1A" } }