[flang-commits] [flang] 2284771 - [flang][nfc] Rename four driver tests
Andrzej Warzynski via flang-commits
flang-commits at lists.llvm.org
Tue Dec 5 13:53:27 PST 2023
Author: Andrzej Warzynski
Date: 2023-12-05T21:52:49Z
New Revision: 2284771fa02fa3c75b07fafc37c559cf6deddd59
URL: https://github.com/llvm/llvm-project/commit/2284771fa02fa3c75b07fafc37c559cf6deddd59
DIFF: https://github.com/llvm/llvm-project/commit/2284771fa02fa3c75b07fafc37c559cf6deddd59.diff
LOG: [flang][nfc] Rename four driver tests
This patch makes sure that hyphen ("-") (instead of an underscore "_")
is consistently used for all test files.
Sending without a review as this is rather straightforward.
Added:
flang/test/Driver/compiler-options.f90
flang/test/Driver/fast-math.f90
flang/test/Driver/flang-f-opts.f90
flang/test/Driver/no-duplicate-main.f90
Modified:
Removed:
flang/test/Driver/compiler_options.f90
flang/test/Driver/fast_math.f90
flang/test/Driver/flang_f_opts.f90
flang/test/Driver/no_duplicate_main.f90
################################################################################
diff --git a/flang/test/Driver/compiler_options.f90 b/flang/test/Driver/compiler-options.f90
similarity index 90%
rename from flang/test/Driver/compiler_options.f90
rename to flang/test/Driver/compiler-options.f90
index 3edebb915c095..d0bafbffafdfe 100644
--- a/flang/test/Driver/compiler_options.f90
+++ b/flang/test/Driver/compiler-options.f90
@@ -1,6 +1,6 @@
! RUN: %flang -S -emit-llvm -flang-deprecated-no-hlfir -o - %s | FileCheck %s
! Test communication of COMPILER_OPTIONS from flang-new to flang-new -fc1.
-! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang-new{{(\.exe)?}} -S -emit-llvm -flang-deprecated-no-hlfir -o - {{.*}}compiler_options.f90"
+! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang-new{{(\.exe)?}} -S -emit-llvm -flang-deprecated-no-hlfir -o - {{.*}}compiler-options.f90"
program main
use ISO_FORTRAN_ENV, only: compiler_options
implicit none
diff --git a/flang/test/Driver/fast_math.f90 b/flang/test/Driver/fast-math.f90
similarity index 100%
rename from flang/test/Driver/fast_math.f90
rename to flang/test/Driver/fast-math.f90
diff --git a/flang/test/Driver/flang_f_opts.f90 b/flang/test/Driver/flang-f-opts.f90
similarity index 100%
rename from flang/test/Driver/flang_f_opts.f90
rename to flang/test/Driver/flang-f-opts.f90
diff --git a/flang/test/Driver/no_duplicate_main.f90 b/flang/test/Driver/no-duplicate-main.f90
similarity index 100%
rename from flang/test/Driver/no_duplicate_main.f90
rename to flang/test/Driver/no-duplicate-main.f90
More information about the flang-commits
mailing list