[cfe-commits] r83593 - in /cfe/trunk/test: CodeGen/stack-protector.c CodeGenCXX/predefined-expr.cpp CodeGenObjC/predefined-expr.m
Mike Stump
mrs at apple.com
Thu Oct 8 16:05:06 PDT 2009
Author: mrs
Date: Thu Oct 8 18:05:06 2009
New Revision: 83593
URL: http://llvm.org/viewvc/llvm-project?rev=83593&view=rev
Log:
Speed up testing by avoiding stdio.h, also helps testing on windows.
Patch by John Thompson.
Modified:
cfe/trunk/test/CodeGen/stack-protector.c
cfe/trunk/test/CodeGenCXX/predefined-expr.cpp
cfe/trunk/test/CodeGenObjC/predefined-expr.m
Modified: cfe/trunk/test/CodeGen/stack-protector.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/stack-protector.c?rev=83593&r1=83592&r2=83593&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/stack-protector.c (original)
+++ cfe/trunk/test/CodeGen/stack-protector.c Thu Oct 8 18:05:06 2009
@@ -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];
Modified: cfe/trunk/test/CodeGenCXX/predefined-expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/predefined-expr.cpp?rev=83593&r1=83592&r2=83593&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/predefined-expr.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/predefined-expr.cpp Thu Oct 8 18:05:06 2009
@@ -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 {
Modified: cfe/trunk/test/CodeGenObjC/predefined-expr.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/predefined-expr.m?rev=83593&r1=83592&r2=83593&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/predefined-expr.m (original)
+++ cfe/trunk/test/CodeGenObjC/predefined-expr.m Thu Oct 8 18:05:06 2009
@@ -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
More information about the cfe-commits
mailing list