111
|
1 // { dg-options -fabi-version=9 }
|
|
2 // { dg-final { scan-assembler "_Z1fB7__test1v" } }
|
|
3 // { dg-final { scan-assembler "_ZZ1fB7__test1vEN1T1gB7__test2Ev" } }
|
|
4 // { dg-final { scan-assembler "_ZZZ1fB7__test1vEN1T1gEvE1x" } }
|
|
5 // { dg-final { scan-assembler "_ZGVZZ1fvEN1T1gEvE1x" } }
|
|
6
|
|
7 struct X { ~X(); };
|
|
8 inline namespace __test1 __attribute__((abi_tag)) { struct A1 { }; }
|
|
9 inline namespace __test2 __attribute__((abi_tag)) { struct A2 { }; }
|
|
10 inline A1 f() {
|
|
11 struct T {
|
|
12 A2 g() {
|
|
13 static X x;
|
131
|
14 return A2();
|
111
|
15 }
|
|
16 };
|
|
17 T().g();
|
131
|
18 return A1();
|
111
|
19 }
|
|
20 int main() {
|
|
21 f();
|
|
22 }
|