aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor10.C
blob: 1dbc3355e3dfd874c78608db1b5055ef57b233a3 (plain)
1
2
3
4
5
6
// PR c++/52599
// { dg-do compile { target c++11 } }

struct foo {
  constexpr foo() try { } catch(...) { };  // { dg-error "constexpr" }
};