OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.10.1.c] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
 
3
#include <stdio.h>
4
void
5
work1 ()
6
{
7
}
8
 
9
void
10
work2 ()
11
{
12
}
13
void
14
a10 ()
15
{
16
#pragma omp parallel
17
  {
18
#pragma omp single
19
    printf ("Beginning work1.\n");
20
    work1 ();
21
#pragma omp single
22
    printf ("Finishing work1.\n");
23
#pragma omp single nowait
24
    printf ("Finished work1 and beginning work2.\n");
25
    work2 ();
26
  }
27
}

powered by: WebSVN 2.1.0

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