Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/abi/abi-tag18a.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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; | |
14 } | |
15 }; | |
16 T().g(); | |
17 } | |
18 int main() { | |
19 f(); | |
20 } |