summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor2.C
blob: 5280b131b7b85d91b9279d975939e5cb8b28ca64 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options -std=c++0x }

struct A
{
  A();
};

struct B : A
{
  constexpr B(): A() { }	// { dg-error "A::A" }
};