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.
4 
5 namespace foo {
6   extern "C" int f ();
7 }
8 
f()9 extern "C" int f () { return 0; }
10 
11 using namespace foo;
12 
main()13 int main ()
14 {
15   f ();
16 }
17