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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
void foo()
4
{
5
  int i, j;
6
  for (i = 0; i < 10; ++i)
7
    {
8
      #pragma omp for
9
      for (j = ({ continue; 0; });      // { dg-error "invalid exit" }
10
           j < ({ continue; 10; });     // { dg-error "invalid exit" }
11
           j += ({ continue; 1; }))     // { dg-error "invalid exit" }
12
        continue;
13
 
14
      #pragma omp for
15
      for (j = ({ break; 0; });         // { dg-error "invalid exit" }
16
           j < ({ break; 10; });        // { dg-error "invalid exit" }
17
           j += ({ break; 1; }))        // { dg-error "invalid exit" }
18
        break;                          // { dg-error "break" }
19
    }
20
}

powered by: WebSVN 2.1.0

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