summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor17.C
blob: ed82a14e6512175b2aa6a9b7ecb3cdd98316c5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/57820
// { dg-do compile { target c++11 } }

struct C
{
  int a = 2;
  int b = a + 1;

  constexpr C() {}
};

C c;
constexpr C d;