rt_gccstream/gcc/testsuite/g++.old-deja/g++.ns/ns12.C

24 lines
208 B
C

// { dg-do run }
namespace fred
{
int barney();
extern int wilma;
}
int fred::barney()
{
return fred::wilma;
}
int fred::wilma;
int barney()
{
return 1;
}
int main()
{
return fred::barney();
}