blob: 297a0e73714591830564fc49e9ae1b3fe27efd55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/19732
struct A;
typedef int ~A; // { dg-error "non-function" }
struct B {
~A(); // { dg-error "" }
typedef int ~A; // { dg-error "non-function" }
void f() {
extern ~B(); // { dg-error "non-member" }
}
};
void ~A(); // { dg-error "non-member" }
|