1! RUN: %flang_fc1 -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s 2! RUN: %flang_fc1 -finit-global-zero -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s 3! RUN: %flang_fc1 -fno-init-global-zero -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-NO-ZERO-INIT %s 4! RUN: bbc -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s 5! RUN: bbc -finit-global-zero -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-DEFAULT %s 6! RUN: bbc -finit-global-zero=false -emit-hlfir -o - %s | FileCheck --check-prefix=CHECK-NO-ZERO-INIT %s 7 8module zeroInitM1 9 real :: x 10end module zeroInitM1 11 12!CHECK-DEFAULT: fir.global @_QMzeroinitm1Ex : f32 { 13!CHECK-DEFAULT: %[[UNDEF:.*]] = fir.zero_bits f32 14!CHECK-DEFAULT: fir.has_value %[[UNDEF]] : f32 15!CHECK-DEFAULT: } 16 17!CHECK-NO-ZERO-INIT: fir.global @_QMzeroinitm1Ex : f32 { 18!CHECK-NO-ZERO-INIT: %[[UNDEF:.*]] = fir.undefined f32 19!CHECK-NO-ZERO-INIT: fir.has_value %[[UNDEF]] : f32 20!CHECK-NO-ZERO-INIT: } 21