summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/link14992.d
blob: d024b5f7fdff29c903cd3cd5d0187042a1508c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// EXTRA_FILES: imports/a14992.d
import imports.a14992;  // do not link

int test()
{
    S1 v1;      // OK
    S1* p1;     // OK
    S1[] da1;   // OK
    S1[2] a1;   // OK <- NG

    S2 v2;      // OK
    S2* p2;     // OK
    S2[] da2;   // OK
    S2[2] a2;   // OK <- NG

    return 1;
}
static assert(test());

void main()
{
    test();
}