1// { dg-do compile } 2 3struct S { void f (void); }; 4 5typedef void f1 (void) throw (int); // { dg-error "exception" } 6typedef void (*f2) (void) throw (int); // { dg-error "exception" } 7typedef void (S::*f3) (void) throw (int); // { dg-error "exception" } 8 9void (*f4) (void) throw (int); 10void (S::*f5) (void) throw (int); 11