brintos

brintos / llvm-project-archived public Read only

0
0
Text · 701 B · c4f037d Raw
30 lines · plain
1!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=522 3! The USER trait set4 5subroutine f00(x)6  integer :: x7  !$omp metadirective &8!ERROR: CONDITION trait requires a single LOGICAL expression9  !$omp & when(user={condition(score(2): x)}: nothing)10end11 12subroutine f0113  !$omp metadirective &14!ERROR: CONDITION trait requires a single expression property15  !$omp & when(user={condition(.true., .false.)}: nothing)16end17 18subroutine f0219  !$omp metadirective &20!ERROR: Extension traits are not valid for USER trait set21  !$omp & when(user={fred}: nothing)22end23 24subroutine f03(x)25  integer :: x26  !$omp metadirective &27!This is ok28  !$omp & when(user={condition(x > 0)}: nothing)29end30