1 /* PR middle-end/30473 */
2 /* Make sure this doesn't ICE.  */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
5 
6 extern int sprintf (char *, const char *, ...);
7 
8 void
foo(char * buf1,char * buf2)9 foo (char *buf1, char *buf2)
10 {
11   sprintf (buf1, "%s", "abcde");
12   sprintf (buf2, "%s");
13 }
14