blob: 9ed7d30d2a5dc09668501c0303c4e40f34894468 [file] [log] [blame]
// Make sure definitions of static members have the right access.
// Build don't link:
struct A {
protected:
int i;
int f (); // ERROR -
};
struct B: public A {
static int A::*p;
static int (A::*fp)();
};
int A::* B::p = &A::i;
int (A::* B::fp)() = &A::f;
struct C {
static int A::*p;
static int (A::*fp)();
};
int A::* C::p = &A::i; // ERROR -
int (A::* C::fp)() = &A::f; // ERROR -