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] - Rev 816

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" } }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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