diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/parallel-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/parallel-3.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/parallel-3.c b/gcc/testsuite/gcc.dg/gomp/parallel-3.c new file mode 100644 index 00000000000..633d7ba5998 --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/parallel-3.c @@ -0,0 +1,15 @@ +// { dg-do compile } + +extern int printf (const char *, ...); + +int main (void) +{ + double d = 6; + int i = 1; +#pragma omp parallel shared(d) private(i) num_threads (4 + i) + { + i = 4; + printf ("%s %d %g\n", "Hello, World!", i, d); + } + return 0; +} |