Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/externC3.C

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