1 /*
2    930513-2.c from the execute part of the gcc torture suite.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
11 
sub3(const int * i)12 void sub3 (const int *i)
13 {
14 }
15 
eq(int a,int b)16 void eq (int a, int b)
17 {
18   static int i = 0;
19   if (a != i)
20     ASSERT (0);
21   i++;
22 }
23 
24 void
testTortureExecute(void)25 testTortureExecute (void)
26 {
27   int i;
28 
29   for (i = 0; i < 4; i++)
30     {
31       const int j = i;
32       int k;
33       sub3 (&j);
34       k = j;
35       eq (k, k);
36     }
37   return;
38 }
39 
40