Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug-1493710.c
1 /*
2    bug-1493710.c
3
4    cse
5    findPointerSet with signed/unsigned operands
6 */
7
8 #include <testfwk.h>
9
10 struct
11   {
12     unsigned char a;
13   } st = { 0xff };
14
15 signed char c = -1;
16
17 unsigned char f (void)
18 {
19   st.a += c;
20   return st.a > 8;
21 }
22
23 void
24 testFindPointerSet(void)
25 {
26   ASSERT(f() == 1);
27 }