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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20080522-1.c
blob
e2598439b7975dcf263d1b7f64baf811dc16b9e4
1
/* { dg-do compile }
2
/* { dg-options "-O2 -fsee" } */
3
4
int
f
(
const char
*
ptr
,
int
bar
) {
5
return
(((
const char
*)
0
-
ptr
) & (
bar
-
1
)) ==
0
;
6
}
7
8
9
int
g
(
const char
*
ptr
,
const char
*
test
,
int
N
,
int
bar
) {
10
if
(
N
==
0
) {
11
}
12
else if
(
N
>
0
) {
13
int
count
=
0
;
14
while
(
count
<
N
) {
15
if
(!
f
(
ptr
,
bar
))
16
count
++;
17
}
18
}
19
return
f
(
test
,
bar
) ;
20
}