c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / catch1.C
blob733bd560180ef791d99ba2280f3b88f1da4feef4
1 // PR c++/53371
2 // { dg-do compile { target c++11 } }
3 // Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
5 struct Abs
7   virtual void a() = 0;
8 };
10 void foo()
12   try {
13   } catch (Abs) { }   // { dg-error "abstract class type" }
15   try {
16   } catch (int&&) { } // { dg-error "rvalue reference type" }