repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/27945
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr18921-1.c
blob
b8c91aa0948a6d3a510630745dc4bcc3a3fb0d1a
1
/* PR middle-end/18921 */
2
/* { dg-do run } */
3
/* { dg-options "-O2" } */
4
5
extern
void
abort
(
void
);
6
7
int
foo
(
int
k
)
8
{
9
unsigned char
j
=
0
;
10
(
k
?
0
:
j
++) == -
1
;
11
return
j
;
12
}
13
14
int
main
()
15
{
16
if
(!
foo
(
0
))
17
abort
();
18
return
0
;
19
}
20