struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20190228-1.c
blobd56c2c60c7ef281ad7e357cccaa532e905944e80
1 /*
2 20190228-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR tree-optimization/89536 */
8 /* Testcase by Zhendong Su <su@cs.ucdavis.edu> */
10 int a = 1;
12 void
13 testTortureExecute (void)
15 a = ~(a && 1);
16 if (a < -1)
17 a = ~a;
19 if (!a)
20 ASSERT (0);
22 return;