OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2011-10-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
char-compare.c
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
}