OSDN Git Service

2008-11-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 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 }