Debian Codegraph @

gcc/testsuite/g++.dg/init/const8.C

raw
1 // DR 234 - it should be OK to leave off the initializer of a const
2 // variable if the default constructor fully initializes the object.
3
4 struct A { };
5 const A a;
6
7 struct B { A a; };
8 const B b;
9
10 struct C { virtual void f(); };
11 const C c;