struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-930622-2.c
blob7f002b9f7ae8b9151b07399004faf4054f98746c
1 /*
2 930622-2.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 supports long double and long long!
12 #if 0
13 long double
14 ll_to_ld (long long n)
16 return n;
19 long long
20 ld_to_ll (long double n)
22 return n;
24 #endif
26 void
27 testTortureExecute (void)
29 #if 0
30 long long n;
32 if (ll_to_ld (10LL) != 10.0)
33 ASSERT (0);
35 if (ld_to_ll (10.0) != 10)
36 ASSERT (0);
38 return;
39 #endif