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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [block-1.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
void foo()
4
{
5
  bad1:                         // { dg-error "jump to label" }
6
  #pragma omp parallel
7
    goto bad1;                  // { dg-error "from here|exits OpenMP" }
8
 
9
  goto bad2;                    // { dg-error "from here" }
10
  #pragma omp parallel
11
    {
12
      bad2: ;                   // { dg-error "jump to label|enters OpenMP" }
13
    }
14
 
15
  #pragma omp parallel
16
    {
17
      int i;
18
      goto ok1;
19
      for (i = 0; i < 10; ++i)
20
        { ok1: break; }
21
    }
22
}
23
 
24
// { dg-message "error: invalid branch to/from an OpenMP structured block" "" { target *-*-* } 7 }
25
// { dg-message "error: invalid entry to OpenMP structured block" "" { target *-*-* } 9 }

powered by: WebSVN 2.1.0

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