]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/catch1.C
re PR c++/53371 (rvalue reference type as exception-declaration)
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / catch1.C
1 // PR c++/53371
2 // { dg-do compile { target c++11 } }
3
4 struct Abs
5 {
6 virtual void a() = 0;
7 };
8
9 void foo()
10 {
11 try {
12 } catch (Abs) { } // { dg-error "abstract class type" }
13
14 try {
15 } catch (int&&) { } // { dg-error "rvalue reference type" }
16 }
This page took 0.039832 seconds and 5 git commands to generate.