bolt/deps/llvm-18.1.8/flang/test/Lower/target_use.f90
2025-02-14 19:21:04 +01:00

9 lines
270 B
Fortran

! RUN: bbc -emit-fir %S/target_definition.f90
! RUN: bbc -emit-fir %s -o - | FileCheck %s
! Test TARGET attributes on a declaration of a global symbol.
! CHECK: fir.global @_QMtarget_modEx target : f32
real function test()
use target_mod
test = x
end function test