OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [libgomp/] [testsuite/] [libgomp.c/] [pr32468.c] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* PR libgomp/32468 */
2
/* { dg-do run } */
3
 
4
#include <omp.h>
5
#include <stdlib.h>
6
 
7
int
8
main (void)
9
{
10
  int res[2] = { -1, -1 };
11
  omp_set_dynamic (0);
12
  omp_set_num_threads (4);
13
#pragma omp parallel
14
  {
15
    #pragma omp sections
16
      {
17
        #pragma omp section
18
        res[0] = omp_get_num_threads () != 4;
19
        #pragma omp section
20
        res[1] = omp_get_num_threads () != 4;
21
      }
22
  }
23
  if (res[0] != 0 || res[1] != 0)
24
    abort ();
25
  return 0;
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.