Skip to content

Commit 656864e

Browse files
Fix failures
1 parent 2ebb099 commit 656864e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/test/Semantics/OpenMP/clause-validity01.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,13 @@
330330
!$omp parallel
331331
b = 1
332332
!ERROR: LASTPRIVATE clause is not allowed on the SINGLE directive
333+
!ERROR: NOWAIT clause must not be used with COPYPRIVATE clause on the SINGLE directive
333334
!$omp single private(a) lastprivate(c) nowait
334335
a = 3.14
335336
!ERROR: Clause NOWAIT is not allowed if clause COPYPRIVATE appears on the END SINGLE directive
336337
!ERROR: COPYPRIVATE variable 'a' may not appear on a PRIVATE or FIRSTPRIVATE clause on a SINGLE construct
338+
!ERROR: At most one NOWAIT clause can appear on the SINGLE directive
339+
!ERROR: At most one NOWAIT clause can appear on the SINGLE directive
337340
!ERROR: At most one NOWAIT clause can appear on the END SINGLE directive
338341
!$omp end single copyprivate(a) nowait nowait
339342
c = 2

0 commit comments

Comments
 (0)