[cfe-commits] r95932 - in /cfe/trunk/test/Sema: Inputs/ Inputs/conversion.h conversion.c
John McCall
rjmccall at apple.com
Thu Feb 11 14:45:17 PST 2010
Author: rjmccall
Date: Thu Feb 11 16:45:16 2010
New Revision: 95932
URL: http://llvm.org/viewvc/llvm-project?rev=95932&view=rev
Log:
Make this test not rely on the system <limits.h>. Hopefully fixes the
MSVC build.
Added:
cfe/trunk/test/Sema/Inputs/
cfe/trunk/test/Sema/Inputs/conversion.h
Modified:
cfe/trunk/test/Sema/conversion.c
Added: cfe/trunk/test/Sema/Inputs/conversion.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/Inputs/conversion.h?rev=95932&view=auto
==============================================================================
--- cfe/trunk/test/Sema/Inputs/conversion.h (added)
+++ cfe/trunk/test/Sema/Inputs/conversion.h Thu Feb 11 16:45:16 2010
@@ -0,0 +1,3 @@
+/* Fake system header for Sema/conversion.c */
+
+#define LONG_MAX __LONG_MAX__
Modified: cfe/trunk/test/Sema/conversion.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/conversion.c?rev=95932&r1=95931&r2=95932&view=diff
==============================================================================
--- cfe/trunk/test/Sema/conversion.c (original)
+++ cfe/trunk/test/Sema/conversion.c Thu Feb 11 16:45:16 2010
@@ -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
More information about the cfe-commits
mailing list