sandbox/Antoonvh/testO.c

    We test if optimzation is actually turned on by the Makefile by checking for output:

    It is here. the sandbox server is just slower than I expected

    It is here. the sandbox server is just slower than I expected

    #include "utils.h"
    scalar s[];
    int main() {
      system ("rm s.png s2.png");
    #ifdef __OPTIMIZE__
      init_grid (256);
      foreach()
        s[] = x + sq(y);
      output_ppm (s, file = "s.png");
    #else
      init_grid (128);
      foreach()
        s[] = sq(x) + y;
      output_ppm (s, file = "s2.png");
    #endif
    }

    The non __OPTIMIZE__d output does not exist:

    see?

    see?