2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -fabi-version=14 }
4 inline namespace N __attribute ((__abi_tag__ ("myabi")))
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" } }