summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-27 14:01:49 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-27 14:02:09 (GMT)
commit1e424683de433de4496b8626bd34719b9bc638d8 (patch)
treebf690cedbfe25a9c32f300a9900fb8f39d5c3121 /test
parenta67cef4aee0ce6d0ad5eba7631dd5908e12a5353 (diff)
downloadCastXML-1e424683de433de4496b8626bd34719b9bc638d8.zip
CastXML-1e424683de433de4496b8626bd34719b9bc638d8.tar.gz
CastXML-1e424683de433de4496b8626bd34719b9bc638d8.tar.bz2
test: Run cc-msvc-builtin-1923 test with suitable target triple
The test added by commit 4ef8cb85 (test: Add case for __builtin_assume_aligned declaration in MSVC header, 2020-04-03, v0.3.3~2^2) uses the MSVC `__cdecl` calling convention specifier. That is not supported by all target ABIs, so update the test to run CastXML using the `x86_64-pc-windows-msvc` target triple. Fixes: #165
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 4b6139d..8dd7eee 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -400,7 +400,9 @@ castxml_test_cmd(cc-msvc-std-explicit --castxml-cc-msvc "(" $<TARGET_FILE:cc-msv
castxml_test_cmd(cc-msvc-builtin-1800-E --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1800 ")" ${empty_cxx} -E -dM)
castxml_test_cmd(cc-msvc-builtin-1900-E --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1900 ")" ${empty_cxx} -E -dM)
castxml_test_cmd(cc-msvc-builtin-1900 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1900 ")" ${input}/make_integer_seq.cxx)
-castxml_test_cmd(cc-msvc-builtin-1923 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1923 ")" ${input}/assume_aligned.cxx)
+if(";${LLVM_TARGETS_TO_BUILD};" MATCHES ";X86;")
+ castxml_test_cmd(cc-msvc-builtin-1923 --castxml-cc-msvc "(" $<TARGET_FILE:cc-msvc> -msc=1923 --cc-define=_M_X64 ")" ${input}/assume_aligned.cxx)
+endif()
castxml_test_cmd(cc-msvc-c-bad-cmd --castxml-cc-msvc-c "(" cc-msvc-c-bad-cmd ")" ${empty_c})
castxml_test_cmd(cc-msvc-c-src-c-E --castxml-cc-msvc-c $<TARGET_FILE:cc-msvc> ${empty_c} -E -dM)
castxml_test_cmd(cc-msvc-c-src-c-cmd --castxml-cc-msvc-c $<TARGET_FILE:cc-msvc> ${empty_c} "-###")