summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/using13.C
blob: c1e96adcc964088214dea6069ef58dfc09f45c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace A{
 void foo(int){}
}
namespace B{
  void foo(bool){}
}

void bar()
{
  using B::foo;
  using A::foo;
  foo(true);
}

namespace Foo {
  template<class N> void Hello(N) {}
}

int main() {
  using Foo::Hello;
  Hello(4);
  bar();
}