summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr17397.c
blob: b857472f65f278b8c76e3fef699185c05abf9451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ICE due to invalid GIMPLE created during strlen simplification.  */

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 ();
}