URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [block-0.C] - Rev 327
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-options "-fopenmp -fdump-tree-omplower" }
void bar();
void foo()
{
#pragma omp critical
bar ();
#pragma omp master
bar ();
#pragma omp single
bar ();
#pragma omp for
for (int i = 0; i < 10; ++i)
bar ();
#pragma omp sections
{ bar(); }
#pragma omp parallel
bar ();
#pragma omp parallel for
for (int i = 0; i < 10; ++i)
bar ();
#pragma omp parallel sections
{
bar ();
bar ();
#pragma omp section
bar ();
}
}
// { dg-final { scan-tree-dump-times "terminate" 10 "omplower" } }
// { dg-final { cleanup-tree-dump "omplower" } }
Go to most recent revision | Compare with Previous | Blame | View Log