struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr65170.c
blob98461710b7ec28025a894d045b42ee36f4c2552a
1 /*
2 pr65170.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* PR tree-optimization/65170 */
13 typedef unsigned long long int V;
14 typedef unsigned int H;
16 #ifndef __SDCC_pdk14 // Lack of memory
17 void
18 foo (V b, V c)
20 V a;
21 b &= (H) -1;
22 c &= (H) -1;
23 a = b * c;
24 if (a != 1)
25 ASSERT (0);
27 #endif
29 void
30 testTortureExecute (void)
32 #ifndef __SDCC_pdk14 // Lack of memory
33 foo (1, 1);
34 return;
35 #endif