aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr64511.c
blob: 83cb5af807c59492c19e913e5ff7e0f2128a548b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR debug/64511 */
/* { dg-do compile } */
/* { dg-options "-O3 -g" } */

int a, c;
int *volatile b;

void
foo (int p)
{
  int d;
  int *e = &a;
  d = ((p == 0) & *e) != 0;
  b = e;
  for (; c;)
    ;
}

void
bar (void)
{
  foo (1);
}