summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-list1.C
blob: f831a112cc9a5927ef02d2130fcec3e706c6894e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/72457
// { dg-do compile { target c++11 } }

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

struct B: A { };

struct C
{
  B b;
  constexpr C() : b{} {}
};