Let tree_single_nonzero_warnv_p use range information
[official-gcc.git] / gcc / testsuite / gcc.dg / pr78768.c
blob68d717a61a5eb71cf68e135ab9f6f68440bb4128
1 /* PR c/78768 - -Walloca-larger-than and -Wformat-overflow warnings disabled
2 by -flto
3 { dg-do link }
4 { dg-require-effective-target lto }
5 { dg-options "-O2 -Walloca-larger-than=10 -Wformat -Wformat-overflow -flto" } */
7 int main (void)
9 char *d = (char *)__builtin_alloca (12); /* { dg-warning "argument to .alloca. is too large" } */
11 __builtin_sprintf (d, "%32s", "x"); /* { dg-warning "directive writing 32 bytes into a region of size 12" "-Wformat-overflow" { xfail *-*-* } } */
13 return 0;