aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/catch1.C
blob: 81778ea780764364cae5ba5255f3482f6b6f959d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/53371
// { dg-do compile { target c++11 } }

struct Abs
{
  virtual void a() = 0;
};

void foo()
{
  try {
  } catch (Abs) { }   // { dg-error "abstract class type" }

  try {
  } catch (int&&) { } // { dg-error "rvalue reference type" }
}