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

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

C c;
constexpr C d = {};