]> gcc.gnu.org Git - gcc.git/blame - 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
CommitLineData
2d1245b8
RS
1// { dg-do compile }
2
3struct S { void f (void); };
4
51dc6603
JM
5typedef void f1 (void) throw (int); // { dg-error "exception" "" { target c++14_down } }
6typedef void (*f2) (void) throw (int); // { dg-error "exception" "" { target c++14_down } }
7typedef void (S::*f3) (void) throw (int); // { dg-error "exception" "" { target c++14_down } }
2d1245b8
RS
8
9void (*f4) (void) throw (int);
10void (S::*f5) (void) throw (int);
This page took 7.890008 seconds and 5 git commands to generate.