aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr77768.c
blob: 47e1484b77a6b2fb954b2162ff901e44e8bd46b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do run } */

static const int a;
int b;
int *c, *d;
int main()
{
  c = (int *)&a;
  c == d ?: __builtin_exit(0); 
  for (; b; b++ >= (*d = a))
    ;
  return 0;
}