comparison gcc/testsuite/gcc.dg/pr53265.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
36 36
37 bar (b); 37 bar (b);
38 for (i = 0; i < (int) (sizeof (a) / sizeof (a[0])); i++) /* { dg-message "note: within this loop" } */ 38 for (i = 0; i < (int) (sizeof (a) / sizeof (a[0])); i++) /* { dg-message "note: within this loop" } */
39 { 39 {
40 c[i + 8] = b[i]; /* { dg-warning "8 invokes undefined behavior" } */ 40 c[i + 8] = b[i]; /* { dg-warning "8 invokes undefined behavior" } */
41 a[i + 8] = b[i + 8]; 41 /* { dg-warning "out of the bounds" "" { target *-*-* } .-1 } */
42 a[i + 8] = b[i + 8]; /* { dg-warning "out of the bounds" } */
42 } 43 }
43 bar (a); 44 bar (a);
44 bar (c); 45 bar (c);
45 } 46 }
46 47