summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array28.C
blob: d7706b9f0b4c1cfb63fcaf71bfdb30b5fce9da61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/105191
// { dg-do compile { target c++11 } }

struct A {
  const char* message = "";
};

enum class B { };

struct C {
  A a;
  B b;
};

struct D {
  C cs[1];
};

constexpr D ds[4] = {
  D{},
};