struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20120817-1.c
blobfa8f9d9a06a52c0c284ada5f99fc746710236388
1 /*
2 20120817-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 #ifndef __SDCC_pdk14 // Lack of memory
12 typedef unsigned long long u64;
13 unsigned long foo = 0;
14 u64 f();
16 u64 f() {
17 return ((u64)40) + ((u64) 24) * (int)(foo - 1);
19 #endif
21 void
22 testTortureExecute (void)
24 #if !defined(__SDCC_pdk14)
25 if (f () != 16)
26 ASSERT (0);
27 #endif