xref: /llvm-project/flang/test/Driver/fno-zero-init.f90 (revision ce32625966a922fe96aababe0ed975ada004901f)
1! Check that the driver passes through -f[no-]init-global-zero:
2! RUN: %flang -### -S -finit-global-zero %s -o - 2>&1 | FileCheck --check-prefix=CHECK-POS %s
3! RUN: %flang -### -S -fno-init-global-zero %s -o - 2>&1 | FileCheck --check-prefix=CHECK-NEG %s
4! Check that the compiler accepts -f[no-]init-global-zero:
5! RUN: %flang_fc1 -emit-hlfir -finit-global-zero %s -o -
6! RUN: %flang_fc1 -emit-hlfir -fno-init-global-zero %s -o -
7
8! CHECK-POS: "-fc1"{{.*}}"-finit-global-zero"
9! CHECK-NEG: "-fc1"{{.*}}"-fno-init-global-zero"
10