8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/externC3.C
2000-10-23 17:38:33 -04:00

16 lines
253 B
C

// Test that two extern "C" declarations of the same name in different
// namespaces are treated as declaring the same function.
namespace foo {
extern "C" int f ();
}
extern "C" int f () { return 0; }
using namespace foo;
int main ()
{
f ();
}