Skip to content

Commit

Permalink
[Driver] Add -Wno-msvc-not-found to %clang_cl -Werror tests that don'…
Browse files Browse the repository at this point in the history
…t want the diagnostic

and remove a -### -fno-integrated-as test that would fail with --target=x86_64-windows-msvc.
  • Loading branch information
MaskRay committed Jul 30, 2023
1 parent 7141c5b commit 2a1edeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions clang/test/Driver/cl-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/clang-s-opts.s
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2a1edeb

Please sign in to comment.