Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test20565.d

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test20565.d(107): Error: function `test20565.test.box` the same declaration cannot be in multiple scopes with non-D linkage
4 ---
5 */
6
7 // https://issues.dlang.org/show_bug.cgi?id=20565
8
9 #line 100
10
11 void test()
12 {
13 {
14 extern (C++) int box() { return 3; }
15 }
16 {
17 extern (C++) int box() { return 4; }
18 }
19 }