OSDN Git Service

2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ctor9.C
1 // PR c++/47774
2 // { dg-options -std=c++0x }
3
4 struct A
5 {
6   A() {}
7 };
8
9 template <typename T>
10 struct array
11 {
12   constexpr array() : mem() {}
13   T mem[7];
14 };
15
16 int main()
17 {
18   array<A> ar;
19 }