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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr42084.c
blob
d5aad9642cc00a9099859f891f6c04cb94e4f26b
1
/* { dg-do run } */
2
/* { dg-options "-O1 -fno-delete-null-pointer-checks" } */
3
extern
void
abort
(
void
);
4
int
g
=
0
;
5
static int
__attribute__
((
noinline
))
f
(
long long
a
,
long long
b
)
6
{
7
int
cmp
;
8
cmp
=
a
>
b
;
9
if
(&
g
==
0
)
10
cmp
-=
2
;
11
else
12
cmp
++;
13
return
cmp
;
14
}
15
16
int
main
(
void
)
17
{
18
int
ret
=
f
(
2
,
1
);
19
if
(
ret
!=
2
)
20
abort
();
21
return
0
;
22
}