Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/abi/abi-tag16.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-options -Wabi=9 } |
2 // { dg-final { scan-assembler "_ZGVZN1N1FEvE4NameB5cxx11" } } | |
3 namespace std { | |
4 __extension__ inline namespace __cxx11 __attribute__((abi_tag("cxx11"))) { | |
5 struct String { | |
6 String(); | |
7 }; | |
8 } | |
9 } | |
10 namespace N { | |
11 inline void F() { | |
12 { | |
13 static std::String Name; // { dg-warning "mangled name" } | |
14 } | |
15 } | |
16 void F2() { | |
17 F(); | |
18 } | |
19 } |