mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
361 B
D
19 lines
361 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test20565.d(107): Error: function `test20565.test.box` the same declaration cannot be in multiple scopes with non-D linkage
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=20565
|
|
|
|
#line 100
|
|
|
|
void test()
|
|
{
|
|
{
|
|
extern (C++) int box() { return 3; }
|
|
}
|
|
{
|
|
extern (C++) int box() { return 4; }
|
|
}
|
|
}
|