URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [sections-2.C] - Rev 704
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */
extern void bar(int);
void foo(void)
{
#pragma omp sections
bar (0); // { dg-error "expected" }
#pragma omp sections
{
} // { dg-error "expected" }
#pragma omp sections
{
bar (1);
}
#pragma omp sections
{
#pragma omp section
bar(2);
bar(3); // { dg-error "expected" }
bar(4);
#pragma omp section
bar(5);
bar(6); // { dg-error "expected" }
bar(7);
}
}
Go to most recent revision | Compare with Previous | Blame | View Log