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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [sections-2.C] - Rev 816

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);
    }
}

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.