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 
foo(const A &)13 void A::foo(const A&)   {}
bar(const A & a)14 void A::bar(const A& a) { foo(a); }
15