brintos

brintos / llvm-project-archived public Read only

0
0
Text · 526 B · 48cfc68 Raw
23 lines · plain
1! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp -pedantic2! OpenMP Version 5.13! Check OpenMP construct validity for the following directives:4! 2.14.7 Declare Target Directive5 6module mod17end8 9subroutine bar10  !$omp declare target (bar)11end subroutine12 13program main14  use mod115 16  !ERROR: The module name cannot be in a DECLARE TARGET directive17  !$omp declare target (mod1)18 19  ! This is now allowed: "main" is implicitly declared symbol separate20  ! from the main program symbol21  !$omp declare target (main)22end23