Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/gomp/block-1.c @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } void foo() { bad1: #pragma omp parallel goto bad1; // { dg-error "invalid branch to/from OpenMP structured block" } goto bad2; // { dg-error "invalid entry to OpenMP structured block" } #pragma omp parallel { bad2: ; } #pragma omp parallel { int i; goto ok1; for (i = 0; i < 10; ++i) { ok1: break; } } }