summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array3.C
blob: 145a4307e366f383c65ecdeaa6e624288122d932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/48132
// { dg-options -std=c++0x }

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

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