aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr116915.c
blob: f0ee4c0b7e4f74c72ec19126ee500b0ee808b4b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */
/* { dg-require-effective-target int32plus } */

long a, b, *c = &b;
short d, e;
int main() {
  int f = 0;
  for (; f != 1; f = (short)(f - 1)) {
    d = -f;
    e = a && e;
    *c = 0 > f;
  }
  if (b != 0)
    __builtin_abort();
  return 0;
}