blob: 9f56ed3a702a152c60debfc92614e1aa567c4e77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// { dg-do run }
// 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 ();
}
|