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
c: Implement C23 nullptr (N3042)
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr103845.c
blob
45ab518d07c9a9c0bbbc18bf6c65d67d13c6b927
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -fharden-compares -fno-ipa-pure-const" } */
3
4
int
5
baz
(
void
);
6
7
__attribute__
((
returns_twice
))
void
8
bar
(
void
)
9
{
10
}
11
12
int
13
quux
(
int
y
,
int
z
)
14
{
15
return
(
y
||
z
>=
0
) ?
y
:
z
;
16
}
17
18
int
19
foo
(
int
x
)
20
{
21
int
a
=
0
,
b
=
x
==
a
;
22
23
bar
();
24
25
if
(!!
baz
() <
quux
(
b
,
a
))
26
++
x
;
27
28
return
x
;
29
}