struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2274.c
blobd061992d9a8b7964506537232dd00929e94909ef
1 /*
2 bug-2274.c
3 */
5 #include <testfwk.h>
7 #pragma disable_warning 84
9 char func_0 (int i)
11 return i + 10;
14 char func_1 (char i)
16 return i + 20;
19 int func_2 (int i)
21 return i + 30;
24 int func_3 (char i)
26 return i + 40;
29 void uninitialized (void) __reentrant
31 /* SDCC should not crash, but only print warning messages. */
32 char a = func_0 (a);
33 char b = func_1 (b);
34 int c = func_2 (c);
35 int d = func_3 (d);
38 void testBug (void)
40 uninitialized ();