summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr41679.c
blob: aa10cb612e34a0927b4372f90dd89cc507030fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-options "-g" } */

extern int a;
extern char b;
extern int foo (void);

void
test (void)
{
  int c;
  b = foo () ? '~' : '\0';
  while ((c = foo ()))
    if (c == '7')
      a = 0;
}