repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
friend3.C
blob
0df4498735229a99d1c995ca1c04642f2d05ad86
1
// { dg-do assemble }
2
// GROUPS passed friends
3
class B {
4
5
friend class A;
6
7
enum {
8
bEnum = 1,
9
}; // { dg-error "" } comma
10
11
int bArray[ bEnum ];
12
13
public:
14
void bFunction(int arg[ bEnum ]);
15
};
16
17
18
class A {
19
int aMember;
20
21
public:
22
void aFunction(int a[B::bEnum])
23
{
24
B b;
25
b.bArray[ B::bEnum ] = aMember;
26
}
27
};
28