aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr70985.c
blob: 36544934850b8fb6b00edebdcaf2b279323792fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* { dg-do compile } */
/* { dg-additional-options "-std=gnu17" } */
/* { dg-require-effective-target int32plus } */

struct
{
  int f0:24;
} a, c, d;

int b;

int
fn1 ()
{
  return 0;
}

void
fn2 ()
{
  int e;
  if (b) 
    for (; e;)
      {
	d = c;
	if (fn1 (b))
	  b = a.f0;
      }
}