summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array.C
blob: e37400a8bda87a9510a7113dd40d14eefbeb2fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options -std=c++0x }
// { dg-final { scan-assembler-not "static_initialization" } }

struct A
{
  int i;
  constexpr A(): i(0) { }
};

struct B
{
  A a[4];
};

extern const B b{};