URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
void f1(void)
|
void f1(void)
|
{
|
{
|
#pragma omp barrier a /* { dg-error "expected end of line" } */
|
#pragma omp barrier a /* { dg-error "expected end of line" } */
|
}
|
}
|
|
|
/* OpenMP 2.5, section 2.7.3:
|
/* OpenMP 2.5, section 2.7.3:
|
|
|
Note that because the barrier construct does not have a C language
|
Note that because the barrier construct does not have a C language
|
statement as part of its syntax, there are some restrictions on its
|
statement as part of its syntax, there are some restrictions on its
|
placement within a program. The barrier directive may only be placed
|
placement within a program. The barrier directive may only be placed
|
in the program at a position where ignoring or deleting the directive
|
in the program at a position where ignoring or deleting the directive
|
would result in a program with correct syntax. */
|
would result in a program with correct syntax. */
|
|
|
void f2(void)
|
void f2(void)
|
{
|
{
|
label: /* { dg-error "label at end of compound statement" } */
|
label: /* { dg-error "label at end of compound statement" } */
|
#pragma omp barrier
|
#pragma omp barrier
|
}
|
}
|
|
|
void f3(_Bool p)
|
void f3(_Bool p)
|
{
|
{
|
if (p)
|
if (p)
|
#pragma omp barrier /* { dg-error "compound statements" } */
|
#pragma omp barrier /* { dg-error "compound statements" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.