struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20030203-1.c
blobdd20784f8937b85cc3ff7b7a787150f54357e652
1 /*
2 20030203-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 void f(int);
13 int do_layer3(int single)
15 int stereo1;
17 if(single >= 0) /* stream is stereo, but force to mono */
18 stereo1 = 1;
19 else
20 stereo1 = 2;
21 f(single);
23 return stereo1;
26 void
27 testTortureExecute (void)
29 if (do_layer3(-1) != 2)
30 ASSERT (0);
31 return;
34 void f(int i) {}