New testcase.
From-SVN: r21059
This commit is contained in:
parent
a717c1f94d
commit
bfebe8501d
23
gcc/testsuite/g++.old-deja/g++.ns/lookup4.C
Normal file
23
gcc/testsuite/g++.old-deja/g++.ns/lookup4.C
Normal file
@ -0,0 +1,23 @@
|
||||
//Build don't link:
|
||||
namespace X{
|
||||
typedef int foo;
|
||||
const int bar=2;
|
||||
namespace Y{
|
||||
void f(foo);
|
||||
extern int g;
|
||||
extern int g1;
|
||||
struct h{
|
||||
void i(foo);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
void X::Y::f(foo)
|
||||
{
|
||||
}
|
||||
|
||||
int X::Y::g = bar;
|
||||
int X::Y::g1(bar);
|
||||
|
||||
void X::Y::h::i(foo)
|
||||
{}
|
Loading…
Reference in New Issue
Block a user