Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
gdc.dg
/
pr101490.d
blob: 6929d406863d161a070fc59f8ca128b8414f0db2 [
file
] [
log
] [
blame
]
// 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
)
{
}
}