re PR c++/67184 (Missed optimization with C++11 final specifier)
[official-gcc.git] / gcc / testsuite / g++.dg / other / abstract3.C
blob95e293e501b2b01b9c8d4fe050aeed8b0080a0fb
1 // PR c++/51431
3 struct A                  // { dg-message "note" }
5   virtual void foo() = 0; // { dg-message "note" }
6 };
8 struct B
10   A a;           // { dg-error "abstract" }
11   B() : a() {}