modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/pr17133.c (about)

     1  extern void abort (void);
     2  
     3  int foo = 0;
     4  void *bar = 0;
     5  unsigned int baz = 100;
     6  
     7  void *pure_alloc ()
     8  {
     9    void *res;
    10    
    11    while (1)
    12      {
    13        res = (void *) ((((unsigned int) (foo + bar))) & ~1);
    14        foo += 2;
    15        if (foo < baz)
    16          return res;
    17        foo = 0;
    18      }
    19  }
    20  
    21  int main ()
    22  {
    23    pure_alloc ();
    24    if (!foo)
    25      abort ();
    26    return 0;
    27  }