aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor9.C
blob: 0763ee4bc9b97be66051406c793b89cedac72a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/47774
// { dg-do compile { target c++11 } }

struct A
{
  A() {}
};

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

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