summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/gdc223.d
blob: a5a9dccbe465255cf3c068fd0b83a606f30e95eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// https://bugzilla.gdcproject.org/show_bug.cgi?id=223
// { dg-do compile }

struct S223
{
    long[8] field;
}

class C223
{
    long[8] field;
}

S223 test223_1();
real test223_2();
string[long[8]] test223_3();
C223 test223_4();
long test223_5();
long[] test223_6();
long[8] test223_7();
C223[8] test223_8();
void delegate() test223_9();

bool test223()
{
    return test223_1() == test223_1() &&
           test223_1() is test223_1() &&
           test223_2() == test223_2() &&
           test223_2() is test223_2() &&
           test223_3() == test223_3() &&
           test223_3() is test223_3() &&
           test223_4() == test223_4() &&
           test223_4() is test223_4() &&
           test223_5() == test223_5() &&
           test223_5() is test223_5() &&
           test223_6() == test223_6() &&
           test223_6() is test223_6() &&
           test223_7()[] is test223_7()[] &&
           test223_8() == test223_8() &&
           test223_8()[] is test223_8()[] &&
           test223_9() == test223_9() &&
           test223_9() is test223_9();
}