1 /* PR tree-optimization/51721 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Warray-bounds" } */
5 static int a
[10], b
[10], c
[10], d
[10];
10 return v
== 17 ? 11 : v
;
16 return v
== 17 ? 17 : v
;
24 a
[f (s
)] = 0; /* { dg-bogus "array subscript is above array bounds" } */
25 a
[f (s
)] = 0; /* { dg-bogus "array subscript is above array bounds" } */
26 b
[f (s
)] = 0; /* { dg-bogus "array subscript is above array bounds" } */
27 c
[g (s
)] = 0; /* { dg-bogus "array subscript is above array bounds" } */
28 c
[g (s
)] = 0; /* { dg-bogus "array subscript is above array bounds" } */
29 d
[f (s
)] = 0; /* { dg-bogus "array subscript is above array bounds" } */