Debian Codegraph @

gcc/testsuite/g++.dg/parse/access2.C

raw
1 // Copyright (C) 2003 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <[email protected]>
3 // { dg-do compile }
4
5 // Deferred access checking of variable declaration.
6
7 class A {
8 typedef int X; // { dg-message "private" }
9 static X a, b, c;
10 };
11
12 A::X A::a;
13 A::X A::b, x; // { dg-error "this context" }
14 A::X y, A::c; // { dg-error "this context" }
15 A::X z; // { dg-error "this context" }