summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array.C
blob: f2c8ddcc9662924973677fb1a36c567b7f18d4ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options -std=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{};
OpenPOWER on IntegriCloud