struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr27671-1.c
blob876ebe9868277b4055896f06cd06dafb673169c7
1 /*
2 pr27671.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 rtl-optimization/27671.
12 The combiner used to simplify "a ^ b == a" to "a" via
13 simplify_relational_operation_1 in simplify-rtx.c. */
15 /*extern void abort (void) __attribute__ ((noreturn));
16 extern void exit (int) __attribute__ ((noreturn));*/
18 static int
19 foo (int a, int b)
21 int c = a ^ b;
22 if (c == a)
23 ASSERT (0);
26 void
27 testTortureExecute (void)
29 foo (0, 1);
30 return;