]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/eh/spec2.C
Implement P0012R1, Make exception specifications part of the type system.
[gcc.git] / gcc / testsuite / g++.dg / eh / spec2.C
1 // { dg-do compile }
2
3 struct S { void f (void); };
4
5 typedef void f1 (void) throw (int); // { dg-error "exception" "" { target c++14_down } }
6 typedef void (*f2) (void) throw (int); // { dg-error "exception" "" { target c++14_down } }
7 typedef void (S::*f3) (void) throw (int); // { dg-error "exception" "" { target c++14_down } }
8
9 void (*f4) (void) throw (int);
10 void (S::*f5) (void) throw (int);
This page took 0.041029 seconds and 5 git commands to generate.