Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Lower / environment-defaults.f90
blob700f7581bd6e7dd03b433e092243dbd1d5eb1cf8
1 ! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
2 ! RUN: bbc -emit-fir -o - %s | FileCheck %s
4 program test
5 continue
6 end
8 ! Test that a null pointer is generated for environment defaults if nothing is specified
10 ! CHECK: fir.global @_QQEnvironmentDefaults constant : !fir.ref<tuple<i[[int_size:.*]], !fir.ref<!fir.array<0xtuple<!fir.ref<i8>, !fir.ref<i8>>>>>> {
11 ! CHECK: %[[VAL_0:.*]] = fir.zero_bits !fir.ref<tuple<i[[int_size]], !fir.ref<!fir.array<0xtuple<!fir.ref<i8>, !fir.ref<i8>>>>>>
12 ! CHECK: fir.has_value %[[VAL_0]] : !fir.ref<tuple<i[[int_size]], !fir.ref<!fir.array<0xtuple<!fir.ref<i8>, !fir.ref<i8>>>>>>