summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-options.c
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-03-28 20:45:05 +0000
committerHans Wennborg <hans@hanshq.net>2014-03-28 20:45:05 +0000
commit5e91ef63269aab4f154f82d1aa26ead9c657a304 (patch)
tree20847f833b93254e4b0e57afcc41f32400b35592 /clang/test/Driver/cl-options.c
parenta0dafb77eb3baf6404a1081f963ecf9b05b3a9e1 (diff)
downloadbcm5719-llvm-5e91ef63269aab4f154f82d1aa26ead9c657a304.tar.gz
bcm5719-llvm-5e91ef63269aab4f154f82d1aa26ead9c657a304.zip
Try to fix the cl-options.c test on ARM bots
The test was failing because clang-cl changes the default triple to target MSVC-style Win32. This is kind of wonky, but hasn't been a problem until we started warning: warning: unknown platform, assuming -mfloat-abi=soft Some of the tests in cl-options.c were running with -Werror, causing them to fail. Fixing this by FileCheck-ifying those tests instead of using -Werror. llvm-svn: 205049
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r--clang/test/Driver/cl-options.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index 6bae7e6cb8f..a6661311737 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -131,8 +131,8 @@
// Ignored options. Check that we don't get "unused during compilation" errors.
-// (/Zs is for syntax-only, /WX is for -Werror)
-// RUN: %clang_cl /Zs /WX \
+// (/Zs is for syntax-only)
+// RUN: %clang_cl /Zs \
// RUN: /analyze- \
// RUN: /errorReport:foo \
// RUN: /FS \
@@ -150,7 +150,8 @@
// RUN: /wd1234 \
// RUN: /Zc:forScope \
// RUN: /Zc:wchar_t \
-// RUN: -- %s
+// RUN: -### -- %s 2>&1 | FileCheck -check-prefix=IGNORED %s
+// IGNORED-NOT: argument unused during compilation
// Ignored options and compile-only options are ignored for link jobs.
// RUN: touch %t.obj
@@ -161,7 +162,7 @@
// Support ignoring warnings about unused arguments.
// RUN: %clang_cl /Abracadabra -Qunused-arguments -### -- %s 2>&1 | FileCheck -check-prefix=UNUSED %s
-// UNUSED-NOT: warning
+// UNUSED-NOT: argument unused during compilation
// Unsupported but parsed options. Check that we don't error on them.
// (/Zs is for syntax-only)
@@ -256,7 +257,8 @@
// Xclang: "hellocc1"
// We support -m32 and -m64.
-// RUN: %clang_cl /Zs /WX -m32 -m64 -- %s
+// RUN: %clang_cl /Zs /WX -m32 -m64 -### -- 2>&1 %s | FileCheck -check-prefix=MFLAGS %s
+// MFLAGS-NOT: argument unused during compilation
// Use -fno-rtti by default.
// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=NoRTTI %s
OpenPOWER on IntegriCloud