From 05efad5f3a234639bb28a2483d38bbb4cb2b2370 Mon Sep 17 00:00:00 2001 From: John McCall Date: Thu, 11 Feb 2010 22:45:16 +0000 Subject: [PATCH] Make this test not rely on the system . Hopefully fixes the MSVC build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95932 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/Inputs/conversion.h | 3 +++ test/Sema/conversion.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 test/Sema/Inputs/conversion.h diff --git a/test/Sema/Inputs/conversion.h b/test/Sema/Inputs/conversion.h new file mode 100644 index 0000000000..9f6ed2e70f --- /dev/null +++ b/test/Sema/Inputs/conversion.h @@ -0,0 +1,3 @@ +/* Fake system header for Sema/conversion.c */ + +#define LONG_MAX __LONG_MAX__ diff --git a/test/Sema/conversion.c b/test/Sema/conversion.c index 7441a09c06..8b93a46628 100644 --- a/test/Sema/conversion.c +++ b/test/Sema/conversion.c @@ -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 +#include #define BIG 0x7f7f7f7f7f7f7f7fL