predicate aware uninitialized analysis
[official-gcc.git] / gcc / testsuite / g++.dg / parse / dtor5.C
blob297a0e73714591830564fc49e9ae1b3fe27efd55
1 // PR c++/19732
3 struct A;
4 typedef int ~A; // { dg-error "non-function" }
5 struct B { 
6   ~A(); // { dg-error "" }
7   typedef int ~A; // { dg-error "non-function" }
8   void f() {
9     extern ~B(); // { dg-error "non-member" }
10   }
12 void ~A(); // { dg-error "non-member" }