blob: d49629e2b1fcd2d2d812dee3ddee739c56046ae4 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed friends
class B {
friend class A;
enum {
bEnum = 1, // { dg-error "comma at end" "" { target { ! c++11 } } }
};
int bArray[ bEnum ];
public:
void bFunction(int arg[ bEnum ]);
};
class A {
int aMember;
public:
void aFunction(int a[B::bEnum])
{
B b;
b.bArray[ B::bEnum ] = aMember;
}
};