https://github.com/yus3710-fj created https://github.com/llvm/llvm-project/pull/211533
Reverts llvm/llvm-project#207658 due to buildbot failure >From 03e8192fab6a12bc8798a4def8144ea147d18e84 Mon Sep 17 00:00:00 2001 From: Yusuke MINATO <[email protected]> Date: Thu, 23 Jul 2026 21:14:08 +0900 Subject: [PATCH] Revert "[NFC][clang][Driver] Add tests for --driver-mode=flang (#207658)" This reverts commit d814be1bb794baf0650158a6bd1dda23f4f86e99. --- .../Driver/flang/multiple-inputs-mixed.f90 | 22 ------------------- clang/test/Driver/flang/runtimes.f90 | 8 ------- 2 files changed, 30 deletions(-) delete mode 100644 clang/test/Driver/flang/runtimes.f90 diff --git a/clang/test/Driver/flang/multiple-inputs-mixed.f90 b/clang/test/Driver/flang/multiple-inputs-mixed.f90 index f6910f3dd9997..98d8cab00bdfd 100644 --- a/clang/test/Driver/flang/multiple-inputs-mixed.f90 +++ b/clang/test/Driver/flang/multiple-inputs-mixed.f90 @@ -5,25 +5,3 @@ ! CHECK-SYNTAX-ONLY: "{{[^"]*}}/Inputs/one.f90" ! CHECK-SYNTAX-ONLY-LABEL: "{{[^"]*}}clang{{[^"/]*}}" "-cc1" ! CHECK-SYNTAX-ONLY: "{{[^"]*}}/Inputs/other.c" - -! Check that flang-only options are not passed to clang. -! RUN: %clang --driver-mode=flang -### -fstack-arrays %S/Inputs/one.f90 %S/Inputs/other.c 2>&1 | FileCheck --check-prefixes=CHECK-FLANG-OPT %s -! CHECK-FLANG-OPT-LABEL: "{{[^"]*}}flang{{[^"/]*}}" "-fc1" -! CHECK-FLANG-OPT: "-fstack-arrays" -! CHECK-FLANG-OPT-LABEL: "{{[^"]*}}clang{{[^"/]*}}" "-cc1" -! CHECK-FLANG-OPT-NOT: "-fstack-arrays" - -! The -std= option is accepted by both clang and flang, but its acceptable values differ between the two. -! Currently, -std=c17 is passed to flang, which rejects it. This should be fixed in the future. -! A potential solution is to use -Xflang and -Xclang to pass the option to the right frontend; however, -Xclang is rejected. - -! RUN: %clang --driver-mode=flang -### -std=f2018 %S/Inputs/one.f90 -std=c17 %S/Inputs/other.c 2>&1 | FileCheck --check-prefixes=MIXED-OPT %s -! MIXED-OPT-LABEL: "{{[^"]*}}flang{{[^"/]*}}" "-fc1" -! MIXED-OPT: "-std=f2018" -! MIXED-OPT: "-std=c17" -! MIXED-OPT-LABEL: "{{[^"]*}}clang{{[^"/]*}}" "-cc1" -! MIXED-OPT-NOT: "-std=f2018" -! MIXED-OPT: "-std=c17" - -! RUN: not %clang --driver-mode=flang -### -Xflang -std=f2018 %S/Inputs/one.f90 -Xclang -std=c17 %S/Inputs/other.c 2>&1 | FileCheck --check-prefixes=SEPARATE-MIXED-OPT %s -! SEPARATE-MIXED-OPT: error: unknown argument '-Xclang' diff --git a/clang/test/Driver/flang/runtimes.f90 b/clang/test/Driver/flang/runtimes.f90 deleted file mode 100644 index b979a86c2f7c6..0000000000000 --- a/clang/test/Driver/flang/runtimes.f90 +++ /dev/null @@ -1,8 +0,0 @@ -! Check that Flang runtimes are passed to the linker in --driver-mode=flang. - -! RUN: %clang --driver-mode=flang --rtlib=compiler-rt -### %s 2>&1 | FileCheck %s -! CHECK-DAG: clang_rt.{{[^ "]}} -! CHECK-DAG: flang_rt.{{[^ "]}} - -! RUN: not %clang --driver-mode=flang -stdlib=libc++ -### %s 2>&1 | FileCheck --check-prefix=LIBCXX %s -! LIBCXX: error: unknown argument: '-stdlib=libc++' _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
