Skip to content

Commit 52737ea

Browse files
committed
[clang][test] Require x86 target for new Windows EH tests
Added by #144745. These tests cause Clang -cc1 to generate the option -x86-asm-syntax=intel, which is only available if you have included the x86 target. <<<<<< 1: clang: warning: argument unused during compilation: '-c' [-Wunused-command-line-argument] label:38'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found label:38'1 ? possible intended match 2: clang (LLVM option parsing): Unknown command line argument '-x86-asm-syntax=intel'. Try: 'clang (LLVM option parsing) --help' label:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3: clang (LLVM option parsing): Did you mean '--asan-stack=intel'? label:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>>
1 parent b1aece9 commit 52737ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clang/test/CodeGenCXX/microsoft-abi-eh-disabled.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: x86-registered-target
12
// RUN: %clang_cl -c --target=x86_64-windows-msvc -EHs-c- -O2 -GS- \
23
// RUN: -Xclang=-import-call-optimization \
34
// RUN: -clang:-S -clang:-o- -- %s 2>&1 \

clang/test/CodeGenCXX/microsoft-abi-eh-ip2state.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: x86-registered-target
12
// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 -EHsc -GS- \
23
// RUN: -Xclang=-import-call-optimization \
34
// RUN: -clang:-S -clang:-o- -- %s 2>&1 \

0 commit comments

Comments
 (0)