1  extern void abort ();
       2  
       3  int
       4  bar ()
       5  {
       6    int a = 0, i;
       7  
       8  #pragma omp parallel for num_threads (3) reduction (+:a) schedule(static, 1)
       9    for (i = 0; i < 10; i++)
      10      a += i;
      11  
      12    return a;
      13  }
      14  
      15  int
      16  main (void)
      17  {
      18    int res;
      19    res = bar ();
      20    if (res != 45)
      21      abort ();
      22    return 0;
      23  }