diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/empty.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/empty.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/empty.c b/gcc/testsuite/gcc.dg/gomp/empty.c new file mode 100644 index 000000000..6a21c0460 --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/empty.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O -fopenmp -fdump-tree-ompexp" } */ + +main() +{ +#pragma omp parallel + {;} +} + +/* There should not be a GOMP_parallel_start call. */ +/* { dg-final { scan-tree-dump-times "GOMP_parallel_start" 0 "ompexp"} } */ +/* { dg-final { cleanup-tree-dump "ompexp" } } */ |