aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/constexpr-dtor1.C
blob: a2ea6bfb33849abedfae2abee10eb0ffebf27dda (plain)
1
2
3
4
5
6
7
8
9
// P0784R7
// { dg-do compile { target c++11 } }

struct S
{
  constexpr S () : s (0) {}
  constexpr ~S () {}	// { dg-error "'constexpr' destructors only available with" "" { target c++17_down } }
  int s;
};