URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.32.1.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-require-effective-target tls_native } */ #include <stdlib.h> float *work; int size; float tol; void build (void); #pragma omp threadprivate(work,size,tol) void a32 (float t, int n) { tol = t; size = n; #pragma omp parallel copyin(tol,size) { build (); } } void build () { int i; work = (float *) malloc (sizeof (float) * size); for (i = 0; i < size; ++i) work[i] = tol; }