Author: Fangrui Song Date: 2023-07-29T20:51:44-07:00 New Revision: 2a1edebdf1a887fdf01f039d60497626576c837b
URL: https://github.com/llvm/llvm-project/commit/2a1edebdf1a887fdf01f039d60497626576c837b DIFF: https://github.com/llvm/llvm-project/commit/2a1edebdf1a887fdf01f039d60497626576c837b.diff LOG: [Driver] Add -Wno-msvc-not-found to %clang_cl -Werror tests that don't want the diagnostic and remove a -### -fno-integrated-as test that would fail with --target=x86_64-windows-msvc. Added: Modified: clang/test/Driver/cl-options.c clang/test/Driver/clang-s-opts.s Removed: ################################################################################ diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 94d13411986a48..324360e6b6424c 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -196,20 +196,20 @@ // PR24003: -mframe-pointer=all // PR24003: -Os -// RUN: not %clang_cl --target=i686-pc-win32 -Werror /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_2 %s +// RUN: %clang_cl --target=i686-pc-win32 -Werror -Wno-msvc-not-found /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_2 %s // Oy_2: -mframe-pointer=all // Oy_2: -O2 -// RUN: not %clang_cl --target=aarch64-pc-windows-msvc -Werror /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_aarch64 %s +// RUN: %clang_cl --target=aarch64-pc-windows-msvc -Werror -Wno-msvc-not-found /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_aarch64 %s // Oy_aarch64: -mframe-pointer=non-leaf // Oy_aarch64: -O2 -// RUN: not %clang_cl --target=i686-pc-win32 -Werror /O2 /O2 -### -- %s 2>&1 | FileCheck -check-prefix=O2O2 %s +// RUN: %clang_cl --target=i686-pc-win32 -Werror -Wno-msvc-not-found /O2 /O2 -### -- %s 2>&1 | FileCheck -check-prefix=O2O2 %s // O2O2: "-O2" // RUN: %clang_cl /Zs -Werror /Oy -- %s 2>&1 -// RUN: not %clang_cl --target=i686-pc-win32 -Werror /Oy- -### -- %s 2>&1 | FileCheck -check-prefix=Oy_ %s +// RUN: %clang_cl --target=i686-pc-win32 -Werror -Wno-msvc-not-found /Oy- -### -- %s 2>&1 | FileCheck -check-prefix=Oy_ %s // Oy_: -mframe-pointer=all // RUN: %clang_cl /Qvec -### -- %s 2>&1 | FileCheck -check-prefix=Qvec %s diff --git a/clang/test/Driver/clang-s-opts.s b/clang/test/Driver/clang-s-opts.s index f29270882f0ac9..8490bba62dda42 100644 --- a/clang/test/Driver/clang-s-opts.s +++ b/clang/test/Driver/clang-s-opts.s @@ -1,4 +1,3 @@ // RUN: %clang -### -c -flto -fno-lto %s 2>&1 | FileCheck %s -// RUN: %clang -### -c -flto -fno-lto -fno-integrated-as %s 2>&1 | FileCheck %s // CHECK-NOT: argument unused during compilation _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits