1 2 3 4 5 6 7 8 9 10 11 12 13
/* ICE due to invalid GIMPLE created during strlen simplification. */ /* { dg-require-effective-target alloca } */ extern unsigned long strlen (__const char *__s); extern void bar (); extern int cols; void foo (void) { char s[cols + 2]; if (strlen (s) > 0) bar (); }