1 /*
2    20010403-1.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 #pragma disable_warning 85
10 #endif
11 
12 void b (int *);
13 void c (int, int);
14 void d (int);
15 
16 int e;
17 
a(int x,int y)18 void a (int x, int y)
19 {
20   int f = x ? e : 0;
21   int z = y;
22 
23   b (&y);
24   c (z, y);
25   d (f);
26 }
27 
b(int * y)28 void b (int *y)
29 {
30   (*y)++;
31 }
32 
c(int x,int y)33 void c (int x, int y)
34 {
35   if (x == y)
36     ASSERT (0);
37 }
38 
d(int x)39 void d (int x)
40 {
41 }
42 
43 void
testTortureExecute(void)44 testTortureExecute (void)
45 {
46   a (0, 0);
47   return;
48 }
49 
50