1 /* PR middle-end/100680 */
2 /* { dg-do compile { target size32plus } } */
3 /* { dg-options "-O2 -Wstringop-overread" } */
12 static char sa
[8] = { 1, 2, 3, 4 };
17 const struct s
*ps
= (const struct s
*) 0x12345678L
;
18 if (__builtin_memcmp (ps
->a
, ps
->a
, 8))
21 if (__builtin_memcmp (ps
->a
, ea
, 8)) /* { dg-bogus "exceeds source size 0" } */
24 if (__builtin_memcmp (ps
->a
, sa
, 8)) /* { dg-bogus "exceeds source size 0" } */
27 if (__builtin_memcmp (ps
->a
, "abcdABCD", 8)) /* { dg-bogus "exceeds source size 0" } */