libatomic: Handle AVX+CX16 ZHAOXIN like Intel for 16b atomic [PR104688]
[official-gcc.git] / gcc / testsuite / g++.dg / abi / abi-tag24a.C
blob83f930dfdde37fcbb364b30094e9895e055ef5ed
1 // PR c++/98481
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -fabi-version=14 }
4 inline namespace N __attribute ((__abi_tag__ ("myabi")))
6   struct A {};
8 template <typename T>
9 struct B { typedef int size_type; };
10 struct S1 { B<A>::size_type foo () const { return 1; } };
11 struct S2 { B<A>::size_type foo () const; };
12 int S2::foo () const { return 2; }
13 int (S1::*f1) () const = &S1::foo;
14 int (S2::*f2) () const = &S2::foo;
16 // { dg-final { scan-assembler-not "_ZNK2S13fooEv" } }
17 // { dg-final { scan-assembler "_ZNK2S23fooEv" } }
18 // { dg-final { scan-assembler "_ZNK2S13fooB5myabiEv" } }