1 /*
2    20000706-3.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 
baz(int * p)13 void baz(int *p)
14 {
15   c = *p;
16 }
17 
bar(int b)18 void bar(int b)
19 {
20   if (c != 1 || b != 2)
21     ASSERT(0);
22 }
23 
foo(int a,int b)24 void foo(int a, int b)
25 {
26   baz(&a);
27   bar(b);
28 }
29 
30 void
testTortureExecute(void)31 testTortureExecute (void)
32 {
33   foo(1, 2);
34   return;
35 }
36 
37