struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-961223-1.c
blob947f7eafca0eb1dab4f593b0d26e2de179450a32
1 /*
2 961223-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 // TODO: Enable when sdcc can pass struct!
12 #if 0
13 struct s {
14 double d;
17 inline struct s
18 sub (struct s s)
20 s.d += 1.0;
21 return s;
23 #endif
25 void
26 testTortureExecute (void)
28 #if 0
29 struct s t = { 2.0 };
30 t = sub (t);
31 if (t.d != 3.0)
32 ASSERT (0);
33 return;
34 #endif