comparison gcc/testsuite/gcc.c-torture/compile/pr17397.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* ICE due to invalid GIMPLE created during strlen simplification. */
2 /* { dg-require-effective-target alloca } */
3
4 extern unsigned long strlen (__const char *__s);
5 extern void bar ();
6 extern int cols;
7
8 void foo (void)
9 {
10 char s[cols + 2];
11 if (strlen (s) > 0)
12 bar ();
13 }