blob: e2598439b7975dcf263d1b7f64baf811dc16b9e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile }
/* { dg-options "-O2 -fsee" } */
int f(const char* ptr, int bar) {
return (((const char *)0 - ptr ) & (bar - 1)) == 0;
}
int g(const char* ptr, const char *test, int N, int bar) {
if (N == 0) {
}
else if (N > 0) {
int count = 0;
while ( count < N) {
if (!f(ptr, bar))
count++;
}
}
return f(test, bar) ;
}
|