summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor9.C
blob: b7693f1e637fa7853e70710eb565df51000df1b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/47774
// { dg-options -std=c++0x }

struct A
{
  A() {}
};

template <typename T>
struct array
{
  constexpr array() : mem() {}
  T mem[7];
};

int main()
{
  array<A> ar;
}