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

11 lines
315 B
Fortran

! RUN: bbc -emit-fir %s -o - | FileCheck %s
! Test TARGET attributes on a definition of a global symbol.
! CHECK: fir.global @_QMtarget_modEx target : f32 {
! CHECK: %[[init:.*]] = fir.zero_bits f32
! CHECK: fir.has_value %[[init]] : f32
! CHECK: }
module target_mod
real, target :: x
end module target_mod