summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/pr101490.d
blob: 6929d406863d161a070fc59f8ca128b8414f0db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101490
// { dg-do compile }

struct S101490
{
    int[0] arr;
}

void main()
{
    S101490* t;
    auto a = cast(typeof(t.arr)[0])t.arr;
    write(a);
}

void write(S)(S args)
{
    foreach (arg; args)
    {
    }
}