[flang-commits] [flang] 00cdbd7 - [flang][nfc] Move a test
Andrzej Warzynski via flang-commits
flang-commits at lists.llvm.org
Thu Mar 17 09:48:16 PDT 2022
Author: Andrzej Warzynski
Date: 2022-03-17T16:47:54Z
New Revision: 00cdbd7845a4b3811cae9e7b8f0db1af1b90d9b7
URL: https://github.com/llvm/llvm-project/commit/00cdbd7845a4b3811cae9e7b8f0db1af1b90d9b7
DIFF: https://github.com/llvm/llvm-project/commit/00cdbd7845a4b3811cae9e7b8f0db1af1b90d9b7.diff
LOG: [flang][nfc] Move a test
All option forwarding tests should be added to frontend-forwarding.f90
rather than files corresponding to various options. This patch moves
such test for `-mllvm` accordingly.
Added:
Modified:
flang/test/Driver/frontend-forwarding.f90
flang/test/Driver/mllvm.f90
Removed:
################################################################################
diff --git a/flang/test/Driver/frontend-forwarding.f90 b/flang/test/Driver/frontend-forwarding.f90
index ef7e10a560259..14d7985c98984 100644
--- a/flang/test/Driver/frontend-forwarding.f90
+++ b/flang/test/Driver/frontend-forwarding.f90
@@ -7,6 +7,7 @@
! RUN: -fdefault-integer-8 \
! RUN: -fdefault-real-8 \
! RUN: -flarge-sizes \
+! RUN: -mllvm -print-before-all\
! RUN: -P \
! RUN: | FileCheck %s
@@ -16,3 +17,4 @@
! CHECK: "-fdefault-integer-8"
! CHECK: "-fdefault-real-8"
! CHECK: "-flarge-sizes"
+! CHECK: "-mllvm" "-print-before-all"
diff --git a/flang/test/Driver/mllvm.f90 b/flang/test/Driver/mllvm.f90
index affed5e1b884a..101501a6d3ddc 100644
--- a/flang/test/Driver/mllvm.f90
+++ b/flang/test/Driver/mllvm.f90
@@ -7,10 +7,7 @@
! RUN: %flang -S -mllvm -print-before-all %s -o - 2>&1 | FileCheck %s --check-prefix=OUTPUT
! RUN: %flang_fc1 -S -mllvm -print-before-all %s -o - 2>&1 | FileCheck %s --check-prefix=OUTPUT
-! 2. Does the option forwarding from `flang-new` to `flang-new -fc1` work?
-! RUN: %flang -### -S -mllvm -print-before-all %s -o - 2>&1 | FileCheck %s --check-prefix=OPTION_FORWARDING
-
-! 3. Test invalid usage (`-print-before` requires an argument)
+! 2. Test invalid usage (`-print-before` requires an argument)
! RUN: not %flang -S -mllvm -print-before %s -o - 2>&1 | FileCheck %s --check-prefix=INVALID_USAGE
!----------------
@@ -20,10 +17,6 @@
! OUTPUT-NEXT: ; ModuleID = 'FIRModule'
! OUTPUT-NEXT: source_filename = "FIRModule"
-! Verify that `-mllvm <option>` is forwarded to flang -fc1
-! OPTION_FORWARDING: flang-new" "-fc1"
-! OPTION_FORWARDING-SAME: "-mllvm" "-print-before-all"
-
! INVALID_USAGE: flang (LLVM option parsing): for the --print-before option: requires a value!
!------
More information about the flang-commits
mailing list