aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/init/const8.C
blob: 4eb293d654cf55e46b9337ade2cee606c9b3f892 (plain)
1
2
3
4
5
6
7
8
9
10
11
// DR 234 - it should be OK to leave off the initializer of a const
// variable if the default constructor fully initializes the object.

struct A { };
const A a;

struct B { A a; };
const B b;

struct C { virtual void f(); };
const C c;