2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.gb / scope06.C
blob658cbe113fc8b72af2d0170a992e9035c2b3c1f8
1 // { dg-do assemble  }
2 // GROUPS passed gb scope
3 struct C {
4   struct D {
5     int x;
6     void foo ();
7   };
8   const int Ok = 0; // { dg-error "" "" { target { ! c++11 } } } initialization forbidden
9 };
11 void C::D::foo ()
13   x = Ok;                       // { dg-error "non-static" }