Skip to content

Commit 2a1edeb

Browse files
committed
[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.
1 parent 7141c5b commit 2a1edeb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

clang/test/Driver/cl-options.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,20 @@
196196
// PR24003: -mframe-pointer=all
197197
// PR24003: -Os
198198

199-
// RUN: not %clang_cl --target=i686-pc-win32 -Werror /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_2 %s
199+
// RUN: %clang_cl --target=i686-pc-win32 -Werror -Wno-msvc-not-found /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_2 %s
200200
// Oy_2: -mframe-pointer=all
201201
// Oy_2: -O2
202202

203-
// RUN: not %clang_cl --target=aarch64-pc-windows-msvc -Werror /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_aarch64 %s
203+
// RUN: %clang_cl --target=aarch64-pc-windows-msvc -Werror -Wno-msvc-not-found /Oy- /O2 -### -- %s 2>&1 | FileCheck -check-prefix=Oy_aarch64 %s
204204
// Oy_aarch64: -mframe-pointer=non-leaf
205205
// Oy_aarch64: -O2
206206

207-
// RUN: not %clang_cl --target=i686-pc-win32 -Werror /O2 /O2 -### -- %s 2>&1 | FileCheck -check-prefix=O2O2 %s
207+
// RUN: %clang_cl --target=i686-pc-win32 -Werror -Wno-msvc-not-found /O2 /O2 -### -- %s 2>&1 | FileCheck -check-prefix=O2O2 %s
208208
// O2O2: "-O2"
209209

210210
// RUN: %clang_cl /Zs -Werror /Oy -- %s 2>&1
211211

212-
// RUN: not %clang_cl --target=i686-pc-win32 -Werror /Oy- -### -- %s 2>&1 | FileCheck -check-prefix=Oy_ %s
212+
// RUN: %clang_cl --target=i686-pc-win32 -Werror -Wno-msvc-not-found /Oy- -### -- %s 2>&1 | FileCheck -check-prefix=Oy_ %s
213213
// Oy_: -mframe-pointer=all
214214

215215
// RUN: %clang_cl /Qvec -### -- %s 2>&1 | FileCheck -check-prefix=Qvec %s

clang/test/Driver/clang-s-opts.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// RUN: %clang -### -c -flto -fno-lto %s 2>&1 | FileCheck %s
2-
// RUN: %clang -### -c -flto -fno-lto -fno-integrated-as %s 2>&1 | FileCheck %s
32

43
// CHECK-NOT: argument unused during compilation

0 commit comments

Comments
 (0)