aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/abi-tag20.C
blob: 229c1709be58e52110936721c6f2ae517dface00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler "_ZN1B1gIcEEN7__cxx111XEv" } }

inline namespace __cxx11 __attribute__((__abi_tag__ ("ABI_TAG"))) {
  class X {};
}
struct B {
  X f();
  template <class U> X g();
};
int main() {
  B b;
  b.g<char>();
  return 0;
}