6c6ed0ef92
From-SVN: r37024
16 lines
253 B
C
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 ();
|
|
}
|