URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [sections-2.C] - Rev 308
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