repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
scoping10.C
blob
9119951978ced27ae55dfcf88bf713144aecacef
1
// Test for scope-based hiding of functions.
2
3
void f (char *);
4
struct A {
5
void f (); // ERROR - referred to
6
};
7
struct B : public A {
8
void g (char *);
9
void h () {
10
extern void g (); // ERROR -
11
f("foo"); // ERROR - hidden
12
g("foo"); // ERROR - hidden
13
}
14
};