From 76bee4b756badefda61ce867c757cc31b7afa12f Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Thu, 8 Oct 2009 23:05:06 +0000 Subject: [PATCH] Speed up testing by avoiding stdio.h, also helps testing on windows. Patch by John Thompson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83593 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/stack-protector.c | 3 +-- test/CodeGenCXX/predefined-expr.cpp | 2 +- test/CodeGenObjC/predefined-expr.m | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/CodeGen/stack-protector.c b/test/CodeGen/stack-protector.c index bdac853aed..0b5924d811 100644 --- a/test/CodeGen/stack-protector.c +++ b/test/CodeGen/stack-protector.c @@ -12,8 +12,7 @@ // RUN: not grep 'ssp' %t && // RUN: true -#include -#include +int printf(const char * _Format, ...); void test1(const char *msg) { char a[strlen(msg) + 1]; diff --git a/test/CodeGenCXX/predefined-expr.cpp b/test/CodeGenCXX/predefined-expr.cpp index 159590c6b7..95bc255bdd 100644 --- a/test/CodeGenCXX/predefined-expr.cpp +++ b/test/CodeGenCXX/predefined-expr.cpp @@ -51,7 +51,7 @@ // CHECK: private constant [11 x i8] c"staticFunc\00" // CHECK: private constant [28 x i8] c"void NS::Base::staticFunc()\00" -#include +int printf(const char * _Format, ...); namespace NS { diff --git a/test/CodeGenObjC/predefined-expr.m b/test/CodeGenObjC/predefined-expr.m index 38ab18d6da..b27bb3488a 100644 --- a/test/CodeGenObjC/predefined-expr.m +++ b/test/CodeGenObjC/predefined-expr.m @@ -11,7 +11,7 @@ // CHECK: @"__func__.-[Foo(Category) instanceTestWithCategory]" = private constant [42 x i8] c"-[Foo(Category) instanceTestWithCategory]\00" // CHECK: @"__func__.+[Foo(Category) classTestWithCategory]" = private constant [39 x i8] c"+[Foo(Category) classTestWithCategory]\00" -#include +int printf(const char * _Format, ...); @interface Foo @end -- 2.50.1