1 /* PR middle-end/30286 */
3 /* { dg-options "-O2 -ftrapv" } */
5 extern void abort (void);
6 struct S
{ struct S
*s
; };
7 struct T
{ struct S
*t
[25]; };
10 __attribute__((noinline
))
11 foo (int i
, struct T
*x
, struct S
*y
)
14 for (j
= 14; j
> i
; j
--)
26 __builtin_memset (&t
, 0, sizeof (t
));
28 for (i
= 0; i
< 25; i
++)
29 if (t
.t
[i
] != ((i
> 6 && i
<= 14) ? &s
: (struct S
*) 0))
31 __builtin_memset (&t
, 0, sizeof (t
));
33 for (i
= 0; i
< 25; i
++)
34 if (t
.t
[i
] != ((i
>= 0 && i
<= 14) ? &s
: (struct S
*) 0))