aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-array3.C
blob: 12f42f1834d4222bbb0575ddcedd707738a6004c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/48132
// { dg-do compile { target c++11 } }

struct C
{
  constexpr C (int x) : c (x) {}
  int c;
};

void
foo ()
{
  C a[] = { C (0) };
}