IRA: Ignore debug insns for uses in split_live_ranges_for_shrink_wrap. [PR116179]
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / out-of-bounds-pr114472.c
blobef9e7711a2e4669fa5f4eca0440c5fca467f5f9c
1 /* Verify we don't ICE on cases involving very large values for size. */
3 char s, d;
5 void
6 foo(void)
8 __builtin_strncpy(&d, &s + 3, -1); /* { dg-warning "Wstringop-overflow" } */
9 __builtin_strncpy(&d + 3, &s, -1); /* { dg-warning "Wstringop-overflow" } */
12 void
13 bar(void)
15 __builtin_strncpy(&d, &s - 3, -1); /* { dg-warning "Wstringop-overflow" } */
16 __builtin_strncpy(&d - 3, &s, -1); /* { dg-warning "Wstringop-overflow" } */