blob: 91674288935c3649cb62b0938ecbe5847c862730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Build don't link:
// GROUPS passed ARM-compliance
// unsorted.2 file
// Message-Id: <BpBu19.GrF@math.waterloo.edu>
// Date: Thu, 4 Jun 1992 15:07:56 GMT
// Subject: access control
// From: gjditchf@plg.waterloo.edu (Glen Ditchfield)
class X {
private:
enum E1 {a1, b1};
public:
enum E2 {a2, b2};
};
void h(X* p) {
X::E2 e2;
int x2 = X::a2;
X::E1 e1; // Should be rejected, but isn't.// ERROR - .* , XFAIL *-*-*
int x1 = X::a1; // ERROR - Should be rejected, and is.
}
|