aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping10.C
blob: 9119951978ced27ae55dfcf88bf713144aecacef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test for scope-based hiding of functions.

void f (char *);
struct A {
  void f ();			// ERROR - referred to 
};
struct B : public A {
  void g (char *);
  void h () {
    extern void g ();		// ERROR - 
    f("foo");			// ERROR - hidden
    g("foo");			// ERROR - hidden
  }
};