summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr66794.c
blob: 03eeec732bca4e90f9b9d21080825814fa4847af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-additional-options "-w" } */

int a, *b, e;
static int **c = &b;

struct
{
  int f0;
} d;

int *
fn1 ()
{
  int f, **g = &b;
  e = a;
  for (; a;)
    for (; d.f0; d.f0++)
      ;
  *g = &f;
  return *c;
}