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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [block-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
// { dg-do compile }
2
 
3
void foo()
4
{
5
  bad1:
6
  #pragma omp parallel
7
    goto bad1;                  // { dg-error "invalid branch" }
8
 
9
  goto bad2;                    // { dg-error "invalid entry" }
10
  #pragma omp parallel
11
    {
12
      bad2: ;
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
}

powered by: WebSVN 2.1.0

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