aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/clang_headers.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-12 23:06:31 +0000
committerMike Stump <mrs@apple.com>2009-02-12 23:06:31 +0000
commit3855b9a8f05d3f6aba14dcd9aff3147eb8ff57bd (patch)
treed60fe6c19a17c22ede7786744e320fb48bbffa4f /test/Preprocessor/clang_headers.c
parent82320e94606cfb0f68c6049c070c3600f8df9081 (diff)
Fix limits.h for linux, as glibc does a #include_next unless
_GCC_LIMITS_H_ is defined, when __GNUC__ is defined. Also, we need to stay away from possible conflicts with header guards. We should use CLANG_ to prefix all header guards. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/clang_headers.c')
-rw-r--r--test/Preprocessor/clang_headers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Preprocessor/clang_headers.c b/test/Preprocessor/clang_headers.c
new file mode 100644
index 0000000000..4fa6153459
--- /dev/null
+++ b/test/Preprocessor/clang_headers.c
@@ -0,0 +1,3 @@
+// RUN: clang -E %s
+
+#include <limits.h>