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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
using13.C
blob
29867deaaaf185fa7184f76bca80452cbc738055
1
// { dg-do run }
2
namespace A{
3
void foo(int){}
4
}
5
namespace B{
6
void foo(bool){}
7
}
8
9
void bar()
10
{
11
using B::foo;
12
using A::foo;
13
foo(true);
14
}
15
16
namespace Foo {
17
template<class N> void Hello(N) {}
18
}
19
20
int main() {
21
using Foo::Hello;
22
Hello(4);
23
bar();
24
}