mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 02:26:59 +08:00
New test case.
From-SVN: r21212
This commit is contained in:
parent
e00a24fa25
commit
439041b917
23
gcc/testsuite/g++.old-deja/g++.ns/lookup5.C
Normal file
23
gcc/testsuite/g++.old-deja/g++.ns/lookup5.C
Normal file
@ -0,0 +1,23 @@
|
||||
// Build don't link:
|
||||
namespace A{
|
||||
void f();
|
||||
}
|
||||
|
||||
namespace B{
|
||||
using namespace A;
|
||||
void f(int);
|
||||
}
|
||||
|
||||
using namespace B;
|
||||
|
||||
void g()
|
||||
{
|
||||
::f(); // ERROR - A::f is not found
|
||||
}
|
||||
|
||||
using namespace A;
|
||||
|
||||
void g1()
|
||||
{
|
||||
::f(); // ok, it is found now
|
||||
}
|
Loading…
Reference in New Issue
Block a user