[PATCH] Fix compiler_builtins.m test to not rely on including system stdlib.h and malloc.h

Hans Wennborg hans at chromium.org
Wed Jan 21 16:46:55 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7112

Files:
  cfe/trunk/test/Modules/Inputs/System/usr/include/malloc.h
  cfe/trunk/test/Modules/Inputs/System/usr/include/stdlib.h
  cfe/trunk/test/Modules/compiler_builtins.m

Index: cfe/trunk/test/Modules/Inputs/System/usr/include/stdlib.h
===================================================================
--- cfe/trunk/test/Modules/Inputs/System/usr/include/stdlib.h
+++ cfe/trunk/test/Modules/Inputs/System/usr/include/stdlib.h
@@ -0,0 +1 @@
+typedef __SIZE_TYPE__ size_t;
Index: cfe/trunk/test/Modules/compiler_builtins.m
===================================================================
--- cfe/trunk/test/Modules/compiler_builtins.m
+++ cfe/trunk/test/Modules/compiler_builtins.m
@@ -1,6 +1,6 @@
 // RUN: rm -rf %t
-// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -Xclang -verify
-// RUN: %clang -fsyntax-only -std=c99 -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -Xclang -verify
+// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -I%S/Inputs/System/usr/include -Xclang -verify
+// RUN: %clang -fsyntax-only -std=c99 -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -I%S/Inputs/System/usr/include -Xclang -verify
 // expected-no-diagnostics
 
 #ifdef __SSE__

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7112.18569.patch
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150122/8b81562c/attachment.bin>


More information about the cfe-commits mailing list