aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.gb/scope06.C
blob: 46c9d07b5da1b02ba5de246bd51347cf361135de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link: 
// GROUPS passed gb scope
struct C {
  struct D {
    int x;
    void foo ();
  };
      const int Ok = 0; // ERROR - initialization forbidden
};

void C::D::foo ()
{
  x = Ok;
}