libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstringop-overflow-84.c
blob2c0f507a0ed17fd5a786bbd52e86b588cb43c07e
1 /* PR middle-end/102960 - ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0
2 { dg-do compile }
3 { dg-options "-Og -Wall" } */
5 void f (int i)
7 const char *s;
8 if (i)
9 s = &"abcd"[i];
11 __builtin_printf ("%s", s);
14 /* The use of s in the call to sprintf should result in:
15 { dg-prune-output "-Wmaybe-uninitialized" } */