1  /* { dg-require-effective-target fopenmp } */
       2  /* { dg-additional-options "-fopenmp -Wall" } */
       3  
       4  typedef struct _Image
       5  {
       6    int columns, rows;
       7  } Image;
       8  
       9  extern int get_num_threads(void);
      10  
      11  void
      12  test (Image* image)
      13  {
      14    int y;
      15  
      16  #pragma omp parallel for schedule(static) \
      17    num_threads(get_num_threads ())
      18  
      19    for (y = 0; y < image->rows; y++) {
      20      /* [...snip...] */
      21    }
      22  }