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
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
friend3.C
blob
d49629e2b1fcd2d2d812dee3ddee739c56046ae4
1
// { dg-do assemble }
2
// GROUPS passed friends
3
class B {
4
5
friend class A;
6
7
enum {
8
bEnum = 1, // { dg-error "comma at end" "" { target { ! c++11 } } }
9
};
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