]> granicus.if.org Git - clang/commitdiff
Speed up testing by avoiding stdio.h, also helps testing on windows.
authorMike Stump <mrs@apple.com>
Thu, 8 Oct 2009 23:05:06 +0000 (23:05 +0000)
committerMike Stump <mrs@apple.com>
Thu, 8 Oct 2009 23:05:06 +0000 (23:05 +0000)
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
test/CodeGenCXX/predefined-expr.cpp
test/CodeGenObjC/predefined-expr.m

index bdac853aed628b221b5679490feb18915619c47c..0b5924d811122f1822d57ff8f471610ccab29ff9 100644 (file)
@@ -12,8 +12,7 @@
 // RUN: not grep 'ssp' %t &&
 // RUN: true
 
-#include <stdio.h>
-#include <string.h>
+int printf(const char * _Format, ...);
 
 void test1(const char *msg) {
   char a[strlen(msg) + 1];
index 159590c6b741d6937c0bf56e9ae73d603041b56b..95bc255bdde090a493be059e713fe79af6b4eb2c 100644 (file)
@@ -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 <stdio.h>
+int printf(const char * _Format, ...);
 
 namespace NS {
 
index 38ab18d6da5888552b698cef214d2e2b2b3c321d..b27bb3488a5a6fd3911533c0c3299202d3de4b7c 100644 (file)
@@ -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 <stdio.h>
+int printf(const char * _Format, ...);
 
 @interface Foo
 @end