summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20000706-4.c
blob: 0386c16346e6a30126cef906ec37e23a12d554ea (plain) (blame)
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
30
31
/*
   20000706-4.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

int *c;

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

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

void
testTortureExecute (void)
{
  foo(1, 2);
  return;
}