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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [sections-2.c] - Rev 708

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

powered by: WebSVN 2.1.0

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