]> granicus.if.org Git - clang/commitdiff
Make this test not rely on the system <limits.h>. Hopefully fixes the
authorJohn McCall <rjmccall@apple.com>
Thu, 11 Feb 2010 22:45:16 +0000 (22:45 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 11 Feb 2010 22:45:16 +0000 (22:45 +0000)
MSVC build.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95932 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/Inputs/conversion.h [new file with mode: 0644]
test/Sema/conversion.c

diff --git a/test/Sema/Inputs/conversion.h b/test/Sema/Inputs/conversion.h
new file mode 100644 (file)
index 0000000..9f6ed2e
--- /dev/null
@@ -0,0 +1,3 @@
+/* Fake system header for Sema/conversion.c */
+
+#define LONG_MAX __LONG_MAX__
index 7441a09c064e5aaed469576c8526c6943e777caf..8b93a4662821b4e3901ff94f66b6f70ddb3b605b 100644 (file)
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -Wconversion -triple x86_64-apple-darwin %s -Wno-unreachable-code
+// RUN: %clang_cc1 -fsyntax-only -verify -Wconversion -nostdinc -isystem %S/Inputs -triple x86_64-apple-darwin %s -Wno-unreachable-code
 
-#include <limits.h>
+#include <conversion.h>
 
 #define BIG 0x7f7f7f7f7f7f7f7fL