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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [barrier-2.c] - Blame information for rev 823

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 f1(void)
4
{
5
  #pragma omp barrier a         /* { dg-error "expected end of line" } */
6
}
7
 
8
/* OpenMP 2.5, section 2.7.3:
9
 
10
   Note that because the barrier construct does not have a C language
11
   statement as part of its syntax, there are some restrictions on its
12
   placement within a program. The barrier directive may only be placed
13
   in the program at a position where ignoring or deleting the directive
14
   would result in a program with correct syntax.  */
15
 
16
void f2(void)
17
{
18
  label:
19
    #pragma omp barrier
20
}               /* { dg-error "label at end of compound statement" } */
21
 
22
void f3(_Bool p)
23
{
24
  if (p)
25
    #pragma omp barrier         /* { dg-error "compound statements" } */
26
}

powered by: WebSVN 2.1.0

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