summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor10.C
blob: 194cc7cd5812bc16e1e3ea850529746b75474154 (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" "" { target c++17_down } }
};