Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/gen-attrs-14.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-do compile { target c++11 } } |
2 // PR c++/13170 | |
3 // The bogus attribute is ignored, but was in TYPE_ATTRIBUTES during | |
4 // parsing of the class, causing some variants to have it and some not. | |
5 | |
6 struct [[gnu::bogus]] A // { dg-warning "ignored" } | |
7 { | |
8 virtual ~A(); | |
9 void foo(const A&); | |
10 void bar(const A&); | |
11 }; | |
12 | |
13 void A::foo(const A&) {} | |
14 void A::bar(const A& a) { foo(a); } |