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

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

struct B
{
  A a[4];
};

extern const B b{};