OSDN Git Service

* g++.dg/cdce3.C: Skip on alpha*-dec-osf5*.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / attrib14.C
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
6 {                               // { dg-warning "ignored" "" }
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); }