summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20011019-1.c
blob: ebaa411c4101bfbd9468962cc026e7b79bf0a501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern void exit (int);
extern void abort (void);

struct { int a; int b[5]; } x;
int *y;

int foo (void)
{
  return y - x.b;
}

int main (void)
{
  y = x.b;
  if (foo ())
    abort ();
  exit (0);
}