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

int *c;

void bar(int b)
{
  if (*c != 1 || b != 2)
    abort();
}

void foo(int a, int b)
{
  c = &a;
  bar(b);
}

int main()
{
  foo(1, 2);
  exit(0);
}