diff options
Diffstat (limited to 'libgomp/testsuite/libgomp.c/lib-1.c')
-rw-r--r-- | libgomp/testsuite/libgomp.c/lib-1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.c/lib-1.c b/libgomp/testsuite/libgomp.c/lib-1.c index 4839cf936f2..086036d0a69 100644 --- a/libgomp/testsuite/libgomp.c/lib-1.c +++ b/libgomp/testsuite/libgomp.c/lib-1.c @@ -85,6 +85,8 @@ main (void) l = ! omp_in_parallel (); #pragma omp parallel reduction (|:l) if (1) l = ! omp_in_parallel (); + if (l) + abort (); e = omp_get_wtime (); if (d > e) |