1// { dg-do assemble } 2// Testcase for all uses of explicit global scope. 3 4int a, B; 5 6struct A { }; 7int operator+(A&, int); 8 9struct B { 10 struct C { 11 static int a; 12 static int f () { A a; return ::operator+ (a, ::a); } // { dg-bogus "" } 13 }; 14}; 15 16int B::C::a = 0; 17 18struct D : public ::B::C { }; // { dg-bogus "" } 19 20void f () 21{ 22 int B; 23 ::B::C b; 24 25 B = ::B::C::a; // { dg-bogus "" } 26 B = ::B::C::f(); // { dg-bogus "" } 27} 28