aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-99.C
blob: 8d791dd032dec147a3cb15025f11da2638cbeb5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Origin PR c++/51462
// { dg-do compile { target c++11 } }

struct A
{
  int i = 0;
};

struct B
{
  A a;
    constexpr B() : a(0) {} // { dg-error "no matching function" }
};