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