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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [block-0.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
// { dg-options "-fopenmp -fdump-tree-omplower" }
3
 
4
void bar();
5
void foo()
6
{
7
  #pragma omp critical
8
    bar ();
9
  #pragma omp master
10
    bar ();
11
  #pragma omp single
12
    bar ();
13
  #pragma omp for
14
  for (int i = 0; i < 10; ++i)
15
    bar ();
16
  #pragma omp sections
17
    { bar(); }
18
  #pragma omp parallel
19
    bar ();
20
  #pragma omp parallel for
21
  for (int i = 0; i < 10; ++i)
22
    bar ();
23
  #pragma omp parallel sections
24
    {
25
      bar ();
26
      bar ();
27
    #pragma omp section
28
      bar ();
29
    }
30
}
31
 
32
// { dg-final { scan-tree-dump-times "terminate" 10 "omplower" } }
33
// { dg-final { cleanup-tree-dump "omplower" } }

powered by: WebSVN 2.1.0

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