Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr30473.c
blobf01c1cc4a7c53dcf109ded782629950ace688767
1 /* PR middle-end/30473 */
2 /* Make sure this doesn't ICE. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
6 extern int sprintf (char *, const char *, ...);
8 void
9 foo (char *buf1, char *buf2)
11 sprintf (buf1, "%s", "abcde");
12 sprintf (buf2, "%s");