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
gcc/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
20080522-1.c
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
}