diff options
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/CodeGen/stack-protector.c | 3 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/predefined-expr.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/predefined-expr.m | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/clang/test/CodeGen/stack-protector.c b/clang/test/CodeGen/stack-protector.c index bdac853aed6..0b5924d8111 100644 --- a/clang/test/CodeGen/stack-protector.c +++ b/clang/test/CodeGen/stack-protector.c @@ -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]; diff --git a/clang/test/CodeGenCXX/predefined-expr.cpp b/clang/test/CodeGenCXX/predefined-expr.cpp index 159590c6b74..95bc255bdde 100644 --- a/clang/test/CodeGenCXX/predefined-expr.cpp +++ b/clang/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 <stdio.h> +int printf(const char * _Format, ...); namespace NS { diff --git a/clang/test/CodeGenObjC/predefined-expr.m b/clang/test/CodeGenObjC/predefined-expr.m index 38ab18d6da5..b27bb3488a5 100644 --- a/clang/test/CodeGenObjC/predefined-expr.m +++ b/clang/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 <stdio.h> +int printf(const char * _Format, ...); @interface Foo @end |