2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / eh / spec2.C
blob64807dd267747a4808021fc3cfe4067ea6c023bb
1 // { dg-do compile }
3 struct S { void f (void); };
5 typedef void f1 (void) throw (int); // { dg-error "exception" }
6 typedef void (*f2) (void) throw (int); // { dg-error "exception" }
7 typedef void (S::*f3) (void) throw (int); // { dg-error "exception" }
9 void (*f4) (void) throw (int);
10 void (S::*f5) (void) throw (int);