Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.jason/scoping6.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do assemble } // Testcase for all uses of explicit global scope. int a, B; struct A { }; int operator+(A&, int); struct B { struct C { static int a; static int f () { A a; return ::operator+ (a, ::a); } // { dg-bogus "" } }; }; int B::C::a = 0; struct D : public ::B::C { }; // { dg-bogus "" } void f () { int B; ::B::C b; B = ::B::C::a; // { dg-bogus "" } B = ::B::C::f(); // { dg-bogus "" } }