URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr48716.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c/48716
// { dg-do compile }
// { dg-options "-fopenmp" }
int
main (void)
{
#pragma omp parallel default(none)
{
static int s;
int t = 0;
#pragma omp atomic
s++;
t++;
}
#pragma omp task default(none)
{
static int s;
int t = 0;
#pragma omp atomic
s++;
t++;
}
}
Go to most recent revision | Compare with Previous | Blame | View Log