comparison gcc/testsuite/gcc.dg/char-compare.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR rtl-optimization/23241 */
2 /* Origin: Josh Conner <jconner@apple.com> */
3
4 /* { dg-do run } */
5 /* { dg-options "-O2" } */
6
7 extern void abort(void);
8
9 struct fbs {
10 unsigned char uc;
11 } fbs1 = {255};
12
13 void fn(struct fbs *fbs_ptr)
14 {
15 if ((fbs_ptr->uc != 255) && (fbs_ptr->uc != 0))
16 abort();
17 }
18
19 int main(void)
20 {
21 fn(&fbs1);
22 return 0;
23 }