blob: 8106a357807a9e6526a96ac0901e7d0071cfb7f5 [file] [log] [blame]
// { dg-do assemble }
// Test for scope-based hiding of functions.
void f (char *);
struct A {
void f (); // { dg-message "A::f|candidate expects" } referred to
};
struct B : public A {
void g (char *);
void h () {
extern void g (); // { dg-message "" }
f("foo"); // { dg-error "" } hidden
g("foo"); // { dg-error "" } hidden
}
};