2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / scoping6.C
blob2f33010fdaf5f0ff31046d0f93bcdd8e7bbb56ae
1 // { dg-do assemble  }
2 // Testcase for all uses of explicit global scope.
4 int a, B;
6 struct A { };
7 int operator+(A&, int);
9 struct B {
10   struct C {
11     static int a;
12     static int f () { A a; return ::operator+ (a, ::a); } // { dg-bogus "" } 
13   };
16 int B::C::a = 0;
18 struct D : public ::B::C { };   // { dg-bogus "" } 
20 void f ()
22   int B;
23   ::B::C b;
25   B = ::B::C::a;                // { dg-bogus "" } 
26   B = ::B::C::f();              // { dg-bogus "" }