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++.ns
/
ns11.C
blob
ffc5acbb8394ba30be360e0b5b7e26cc22c09ebe
1
// Build don't link
2
// Check [namespace.memdef]/2
3
4
namespace A{
5
void f(int);
6
void f(int,int);
7
int i; // ERROR - .*
8
}
9
10
void A::f(){} // ERROR - should have been declared before
11
12
namespace B{
13
void A::f(int){} // ERROR - B does not surround A
14
}
15
16
int A::i; // ERROR - redefinition
17
18
void A::f(int,int){} // ok
19