Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr82902.C
blob: cc2ce271d4c30edcd88a45b70acbda2177ec146c [
file
] [
log
] [
blame
]
// { dg-do compile }
typedef
struct
el_t
{
el_t
*
next
;
int
elem
[];
}
EL
;
el_t
a
,
c
;
void
*
b
;
void
*
fn1
()
{
if
(
b
)
return
a
.
elem
;
return
c
.
elem
;
}
typedef
struct
{
int
x
;
}
EV_T
;
EV_T
*
d
;
void
fn2
()
{
EV_T
*
e
=
(
EV_T
*)
fn1
();
d
[
0
]
=
*
e
;
}