blob: 8c5c9ad9299d8e3bc15ab4fb8efa7b733134474c [file] [log] [blame]
// Build don't link:
// GROUPS passed enums
class X {
private:
enum E1 {a1, b1}; // ERROR - private
public:
enum E2 {a2, b2};
};
void h(X* p) {
X::E2 e2;
int x2 = X::a2;
X::E1 e1;
int x1 = X::a1; // ERROR - within this context
}