Files
clang-p2996/flang/test/Driver/fsave-main-program.f90
jeanPerier 7211bf48a6 [flang][driver] add negative from of -fsave-main-program (#124110)
Add the `-fno` form for consistency and to make it easy to switch the
default for downstream users.
2025-01-27 10:51:23 +01:00

10 lines
430 B
Fortran

! Check that the driver passes through -fsave-main-program:
! RUN: %flang -### -S -fsave-main-program %s -o - 2>&1 | FileCheck %s
! CHECK: "-fc1"{{.*}}"-fsave-main-program"
! RUN: %flang -### -S -fno-save-main-program %s -o - 2>&1 | FileCheck %s --check-prefix=CHECK2
! CHECK2: "-fc1"{{.*}}"-fno-save-main-program"
! Check that the compiler accepts -fsave-main-program:
! RUN: %flang_fc1 -emit-hlfir -fsave-main-program %s -o -