brintos

brintos / llvm-project-archived public Read only

0
0
Text · 712 B · 84dc60d Raw
22 lines · plain
1! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp2 3subroutine foo(x)4  integer :: x5  !ERROR: At least one motion-clause (TO/FROM) must be specified on TARGET UPDATE construct.6  !$omp target update7 8  !ERROR: At least one motion-clause (TO/FROM) must be specified on TARGET UPDATE construct.9  !$omp target update nowait10 11  !$omp target update to(x) nowait12 13  !ERROR: At most one NOWAIT clause can appear on the TARGET UPDATE directive14  !$omp target update to(x) nowait nowait15 16  !ERROR: A list item ('x') can only appear in a TO or FROM clause, but not in both.17  !BECAUSE: 'x' appears in the TO clause.18  !BECAUSE: 'x' appears in the FROM clause.19  !$omp target update to(x) from(x)20 21end subroutine22