1 /*
2    20000706-4.c from the execute part of the gcc torture tests.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 int *c;
12 
bar(int b)13 void bar(int b)
14 {
15   if (*c != 1 || b != 2)
16     ASSERT(0);
17 }
18 
foo(int a,int b)19 void foo(int a, int b)
20 {
21   c = &a;
22   bar(b);
23 }
24 
25 void
testTortureExecute(void)26 testTortureExecute (void)
27 {
28   foo(1, 2);
29   return;
30 }
31 
32