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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [sections-1.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
extern void bar(int);
4
 
5
void f1(void)
6
{
7
  #pragma omp sections nowait
8
    {
9
      bar (1);
10
    #pragma omp section
11
      bar (2);
12
    #pragma omp section
13
      bar (3);
14
    #pragma omp section
15
      bar (4);
16
    #pragma omp section
17
      bar (5);
18
    }
19
}
20
 
21
void f2(void)
22
{
23
  #pragma omp sections
24
    {
25
    #pragma omp section
26
      {
27
        bar (1);
28
        bar (1);
29
      }
30
    #pragma omp section
31
      bar (2);
32
    #pragma omp section
33
      bar (3);
34
    #pragma omp section
35
      bar (4);
36
    #pragma omp section
37
      bar (5);
38
    }
39
}

powered by: WebSVN 2.1.0

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