]> granicus.if.org Git - clang/commitdiff
Make test/Driver hermetic
authorJF Bastien <jfb@google.com>
Sun, 14 Sep 2014 23:42:15 +0000 (23:42 +0000)
committerJF Bastien <jfb@google.com>
Sun, 14 Sep 2014 23:42:15 +0000 (23:42 +0000)
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

test/Driver/le32-unknown-nacl.cpp
test/Driver/le64-unknown-unknown.cpp

index e029f667a1928990803f37c6fe17ce9641bd6cf6..379ddb6c63d82c764bbb89daaef786b8a0a7ebe6 100644 (file)
@@ -4,9 +4,9 @@
 
 // ECHO: {{.*}} "-cc1" {{.*}}le32-unknown-nacl.c
 
-// Check platform defines
-#include <stdarg.h>
-#include <stddef.h>
+typedef __builtin_va_list va_list;
+typedef __SIZE_TYPE__ size_t;
+typedef __PTRDIFF_TYPE__ ptrdiff_t;
 
 extern "C" {
 
index eb3349c957e1947cdc2fa8bd0d6d32d8a7e5813e..d0a58598ffe76a17418ac81c1ff6561aaa6874ee 100644 (file)
@@ -3,9 +3,9 @@
 
 // ECHO: {{.*}} "-cc1" {{.*}}le64-unknown-unknown.c
 
-// Check platform defines
-#include <stdarg.h>
-#include <stddef.h>
+typedef __builtin_va_list va_list;
+typedef __SIZE_TYPE__ size_t;
+typedef __PTRDIFF_TYPE__ ptrdiff_t;
 
 extern "C" {