☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.dg
/
pr101490.d
☽
☼
gcc/testsuite/gdc.dg/pr101490.d
code
plain
raw
1
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101490
2
// { dg-do compile }
3
4
struct S101490
5
{
6
int[0] arr;
7
}
8
9
void main()
10
{
11
S101490* t;
12
auto a = cast(typeof(t.arr)[0])t.arr;
13
write(a);
14
}
15
16
void write(S)(S args)
17
{
18
foreach (arg; args)
19
{
20
}
21
}