c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / gdc223.d
bloba5a9dccbe465255cf3c068fd0b83a606f30e95eb
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=223
2 // { dg-do compile }
4 struct S223
6 long[8] field;
9 class C223
11 long[8] field;
14 S223 test223_1();
15 real test223_2();
16 string[long[8]] test223_3();
17 C223 test223_4();
18 long test223_5();
19 long[] test223_6();
20 long[8] test223_7();
21 C223[8] test223_8();
22 void delegate() test223_9();
24 bool test223()
26 return test223_1() == test223_1() &&
27 test223_1() is test223_1() &&
28 test223_2() == test223_2() &&
29 test223_2() is test223_2() &&
30 test223_3() == test223_3() &&
31 test223_3() is test223_3() &&
32 test223_4() == test223_4() &&
33 test223_4() is test223_4() &&
34 test223_5() == test223_5() &&
35 test223_5() is test223_5() &&
36 test223_6() == test223_6() &&
37 test223_6() is test223_6() &&
38 test223_7()[] is test223_7()[] &&
39 test223_8() == test223_8() &&
40 test223_8()[] is test223_8()[] &&
41 test223_9() == test223_9() &&
42 test223_9() is test223_9();