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