1 /*
2    930123-1.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 #endif
10 
f(int * x)11 f(int *x)
12 {
13   *x = 0;
14 }
15 
16 void
testTortureExecute(void)17 testTortureExecute (void)
18 {
19   int s, c, x;
20   char a[] = "c";
21 
22   f(&s);
23   a[c = 0] = s == 0 ? (x=1, 'a') : (x=2, 'b');
24   if (a[c] != 'a')
25     ASSERT(0);
26   return;
27 }
28 
29