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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr48716.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c/48716
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
int
6
main (void)
7
{
8
  #pragma omp parallel default(none)
9
  {
10
    static int s;
11
    int t = 0;
12
    #pragma omp atomic
13
    s++;
14
    t++;
15
  }
16
  #pragma omp task default(none)
17
  {
18
    static int s;
19
    int t = 0;
20
    #pragma omp atomic
21
    s++;
22
    t++;
23
  }
24
}

powered by: WebSVN 2.1.0

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