summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Werror-Wsystem-headers.m
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-10-03 22:18:49 +0000
committerJustin Bogner <mail@justinbogner.com>2014-10-03 22:18:49 +0000
commitfa9df7af07fa888feec91b06320b9091d4a3fb52 (patch)
tree281237ddc6ca3b837892d65713bf4510bcca2a34 /clang/test/Modules/Werror-Wsystem-headers.m
parent3c3b48805f1839539c13af3021c9bed5048a8956 (diff)
downloadbcm5719-llvm-fa9df7af07fa888feec91b06320b9091d4a3fb52.tar.gz
bcm5719-llvm-fa9df7af07fa888feec91b06320b9091d4a3fb52.zip
test: Disable standard system includes in %clang_cc1
This adds -nostdsysteminc to the %clang_cc1 expansion, which should make it harder to accidentally write tests that depend on headers in /usr/include. It also updates a few tests that use -isysroot <x> and a darwin triple to omit the triple and use -isystem <x>/usr/include instead, making them a little bit more general. Incidentally, this fixes a test failure I'm seeing on darwin in Modules/stddef.c, that happens because my system finds a stddef.h in /usr/include. llvm-svn: 219030
Diffstat (limited to 'clang/test/Modules/Werror-Wsystem-headers.m')
-rw-r--r--clang/test/Modules/Werror-Wsystem-headers.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Modules/Werror-Wsystem-headers.m b/clang/test/Modules/Werror-Wsystem-headers.m
index c4cd1a6378c..7b3424b8074 100644
--- a/clang/test/Modules/Werror-Wsystem-headers.m
+++ b/clang/test/Modules/Werror-Wsystem-headers.m
@@ -5,17 +5,17 @@
// Initial module build
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \
-// RUN: -isysroot %S/Inputs/System -triple x86_64-apple-darwin10 -fsyntax-only %s -verify
+// RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify
// RUN: cp %t/cstd.pcm %t-saved/cstd.pcm
// Even with -Werror don't rebuild a system module
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \
-// RUN: -isysroot %S/Inputs/System -triple x86_64-apple-darwin10 -fsyntax-only %s -verify -Werror
+// RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify -Werror
// RUN: diff %t/cstd.pcm %t-saved/cstd.pcm
// Unless -Wsystem-headers is on
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \
-// RUN: -isysroot %S/Inputs/System -triple x86_64-apple-darwin10 -fsyntax-only %s -verify \
+// RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify \
// RUN: -Werror=unused -Wsystem-headers
// RUN: not diff %t/cstd.pcm %t-saved/cstd.pcm
OpenPOWER on IntegriCloud