Debian Codegraph @

gcc/testsuite/g++.dg/ext/attrib14.C

raw
1 // PR c++/13170
2 // The bogus attribute is ignored, but was in TYPE_ATTRIBUTES during
3 // parsing of the class, causing some variants to have it and some not.
4
5 struct __attribute__((bogus)) A // { dg-warning "ignored" }
6 {
7 virtual ~A();
8 void foo(const A&);
9 void bar(const A&);
10 };
11
12 void A::foo(const A&) {}
13 void A::bar(const A& a) { foo(a); }