URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [scoping10.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Test for scope-based hiding of functions.
void f (char *);
struct A {
void f (); // { dg-error "" } referred to
};
struct B : public A {
void g (char *);
void h () {
extern void g (); // { dg-error "" }
f("foo"); // { dg-error "" } hidden
g("foo"); // { dg-error "" } hidden
}
};
Go to most recent revision | Compare with Previous | Blame | View Log