aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20060823-1.c
blob: fbce7fe941f206c877a83793ee9002f8f42618fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR middle-end/28683 */

extern void foo (int *);

struct A
{
  int f;
};

struct A *
test (struct A *r)
{
  int *f = &r->f;
  static int i = 0;
  if (!i && !((void *) f == (void *) r))
    foo (&i);
  return r;
}