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-9.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
void foo(int i)
4
{
5
  int j;
6
  switch (i)
7
  {
8
  #pragma omp parallel
9
    { case 0:; }                // { dg-error "jump|enters" }
10
  #pragma omp for
11
    for (j = 0; j < 10; ++ j)
12
      { case 1:; }              // { dg-error "jump|enters" }
13
  #pragma omp critical
14
    { case 2:; }                // { dg-error "jump|enters" }
15
  #pragma omp master
16
    { case 3:; }                // { dg-error "jump|enters" }
17
  #pragma omp sections
18
    { case 4:;                  // { dg-error "jump|enters" }
19
    #pragma omp section
20
       { case 5:; }             // { dg-error "jump|enters" }
21
    }
22
  #pragma omp ordered
23
    { default:; }               // { dg-error "jump|enters" }
24
  }
25
}

powered by: WebSVN 2.1.0

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