From: JF Bastien Date: Sun, 14 Sep 2014 23:42:15 +0000 (+0000) Subject: Make test/Driver hermetic X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a8b0f3d38aaacf0e94af8f4afcce85f05223f97;p=clang Make test/Driver hermetic Summary: The includes shouldn't be there, use the compiler's built-in types/macros instead. This is a follow-up to r217694, as discussed in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140908/114669.html Test Plan: ninja check-clang Reviewers: nlewycky, thakis, echristo, chandlerc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5348 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217743 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/le32-unknown-nacl.cpp b/test/Driver/le32-unknown-nacl.cpp index e029f667a1..379ddb6c63 100644 --- a/test/Driver/le32-unknown-nacl.cpp +++ b/test/Driver/le32-unknown-nacl.cpp @@ -4,9 +4,9 @@ // ECHO: {{.*}} "-cc1" {{.*}}le32-unknown-nacl.c -// Check platform defines -#include -#include +typedef __builtin_va_list va_list; +typedef __SIZE_TYPE__ size_t; +typedef __PTRDIFF_TYPE__ ptrdiff_t; extern "C" { diff --git a/test/Driver/le64-unknown-unknown.cpp b/test/Driver/le64-unknown-unknown.cpp index eb3349c957..d0a58598ff 100644 --- a/test/Driver/le64-unknown-unknown.cpp +++ b/test/Driver/le64-unknown-unknown.cpp @@ -3,9 +3,9 @@ // ECHO: {{.*}} "-cc1" {{.*}}le64-unknown-unknown.c -// Check platform defines -#include -#include +typedef __builtin_va_list va_list; +typedef __SIZE_TYPE__ size_t; +typedef __PTRDIFF_TYPE__ ptrdiff_t; extern "C" {