Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.old-deja / g++.other / externC3.C
blob9f56ed3a702a152c60debfc92614e1aa567c4e77
1 // { dg-do run  }
2 // Test that two extern "C" declarations of the same name in different
3 // namespaces are treated as declaring the same function.
5 namespace foo {
6   extern "C" int f ();
9 extern "C" int f () { return 0; }
11 using namespace foo;
13 int main ()
15   f ();