1 /*
2    pr37931.c from the execute part of the gcc torture tests.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 /* PR middle-end/37931 */
12 
13 
14 int
foo(int a,unsigned int b)15 foo (int a, unsigned int b)
16 {
17   return (a | 1) & (b | 1);
18 }
19 
20 void
testTortureExecute(void)21 testTortureExecute (void)
22 {
23   if (foo (6, 0xc6) != 7)
24     ASSERT (0);
25   if (foo (0x80, 0xc1) != 0x81)
26     ASSERT (0);
27   if (foo (4, 4) != 5)
28     ASSERT (0);
29   if (foo (5, 4) != 5)
30     ASSERT (0);
31   return;
32 }
33