OpenCores
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] - Blame information for rev 717

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
 
3
extern void bar(int);
4
void foo(void)
5
{
6
  #pragma omp sections
7
    bar (0);            // { dg-error "expected" }
8
 
9
  #pragma omp sections
10
    {
11
    }                   // { dg-error "expected" }
12
 
13
  #pragma omp sections
14
    {
15
      bar (1);
16
    }
17
 
18
  #pragma omp sections
19
    {
20
    #pragma omp section
21
      bar(2);
22
      bar(3);           // { dg-error "expected" }
23
      bar(4);
24
    #pragma omp section
25
      bar(5);
26
      bar(6);           // { dg-error "expected" }
27
      bar(7);
28
    }
29
}

powered by: WebSVN 2.1.0

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