URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [copyin-1.C] - Rev 704
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-require-effective-target tls }
int i, j;
#pragma omp threadprivate (i)
void bar(void);
void foo(void)
{
int k;
extern int l;
extern int m;
#pragma omp threadprivate (m)
#pragma omp parallel copyin(i)
bar();
#pragma omp parallel copyin(j) // { dg-error "threadprivate" }
bar();
#pragma omp parallel copyin(k) // { dg-error "threadprivate" }
bar();
#pragma omp parallel copyin(l) // { dg-error "threadprivate" }
bar();
#pragma omp parallel copyin(m)
bar();
}
Go to most recent revision | Compare with Previous | Blame | View Log