[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.
This commit is contained in:
Andrzej Warzynski 2022-03-17 16:44:16 +00:00
parent 7e15303062
commit 00cdbd7845
2 changed files with 3 additions and 8 deletions

View File

@ -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"

View File

@ -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!
!------