svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git] / gcc / testsuite / gcc.dg / char-compare.c
blobf8b2fb968b0a0a508da2bb3d6ac6168cc1cd520a
1 /* PR rtl-optimization/23241 */
2 /* Origin: Josh Conner <jconner@apple.com> */
4 /* { dg-do run } */
5 /* { dg-options "-O2" } */
7 extern void abort(void);
9 struct fbs {
10 unsigned char uc;
11 } fbs1 = {255};
13 void fn(struct fbs *fbs_ptr)
15 if ((fbs_ptr->uc != 255) && (fbs_ptr->uc != 0))
16 abort();
19 int main(void)
21 fn(&fbs1);
22 return 0;