aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/abi/abi-tag6.C
blob: 94ea2f37b6b8009d32acab9d112b42eb2e6d25fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// PR c++/60642

struct __attribute((abi_tag("test"))) foo
{
  void f();
  virtual ~foo();
};

template<typename>
struct __attribute((abi_tag("test"))) bar
{
  void f();
  virtual ~bar();
};

int main()
{
  foo f;
  f.f();

  bar<int> b;
  b.f();
}

// { dg-final { scan-assembler "_ZTV3barB4testIiE" } }