URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [for-14.C] - Rev 751
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
extern int printf (const char *, ...);
extern void foo (int *);
int main (void)
{
double d = 6;
int i = 1, j = 6, k = 8;
#pragma omp parallel shared(d) private(i) num_threads (4)
{
i = 4;
#pragma omp for lastprivate(j)
for (j = 1; j <= k; j++)
printf ("%s %d %d %d %p %g\n", "Hello, World!", i, j, k, &j, d);
printf ("%s %d %g\n", "Hello, World!", i, d);
}
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log