diff options
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r-- | clang/test/CodeGen/PR3589-freestanding-libcalls.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/blocks-1.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/constructor-attribute.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/mandel.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/predefined-expr.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/volatile-1.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/CodeGen/PR3589-freestanding-libcalls.c b/clang/test/CodeGen/PR3589-freestanding-libcalls.c index b2d22753791..14608137188 100644 --- a/clang/test/CodeGen/PR3589-freestanding-libcalls.c +++ b/clang/test/CodeGen/PR3589-freestanding-libcalls.c @@ -2,7 +2,7 @@ // RUN: clang-cc -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 1 // RUN: clang-cc -ffreestanding -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 0 -#include <stdio.h> +int printf(const char *, ...); void f0() { printf("hello\n"); diff --git a/clang/test/CodeGen/blocks-1.c b/clang/test/CodeGen/blocks-1.c index 5b639d10beb..ae5a74aab6f 100644 --- a/clang/test/CodeGen/blocks-1.c +++ b/clang/test/CodeGen/blocks-1.c @@ -7,7 +7,7 @@ // RUN: grep "i32 135)" %t | count 2 // RUN: grep "_Block_object_assign" %t | count 10 -#include <stdio.h> +int printf(const char *, ...); void test1() { __block int a; diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index b4db48ae4b2..11bcc14249a 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -1,7 +1,7 @@ // RUN: clang-cc -emit-llvm -o %t %s // RUN: not grep __builtin %t -#include <stdio.h> +int printf(const char *, ...); void p(char *str, int x) { printf("%s: %d\n", str, x); diff --git a/clang/test/CodeGen/constructor-attribute.c b/clang/test/CodeGen/constructor-attribute.c index 69e7063eab2..b715201dc53 100644 --- a/clang/test/CodeGen/constructor-attribute.c +++ b/clang/test/CodeGen/constructor-attribute.c @@ -4,7 +4,7 @@ // RUN: grep -e "global_ctors.*@C" %t // RUN: grep -e "global_dtors.*@D" %t -#include <stdio.h> +int printf(const char *, ...); void A() __attribute__((constructor)); void B() __attribute__((destructor)); diff --git a/clang/test/CodeGen/mandel.c b/clang/test/CodeGen/mandel.c index 27993f0559e..9d7956c56d1 100644 --- a/clang/test/CodeGen/mandel.c +++ b/clang/test/CodeGen/mandel.c @@ -25,7 +25,7 @@ int main() { return 0; } #define I 1.0iF -#include <stdio.h> +int putchar(char c); volatile double __complex__ accum; diff --git a/clang/test/CodeGen/predefined-expr.c b/clang/test/CodeGen/predefined-expr.c index 9b645931a4a..1a5dcb4fc6f 100644 --- a/clang/test/CodeGen/predefined-expr.c +++ b/clang/test/CodeGen/predefined-expr.c @@ -9,7 +9,7 @@ // CHECK: @__func__.staticFunction = private constant [15 x i8] c"staticFunction\00" // CHECK: @__PRETTY_FUNCTION__.staticFunction = private constant [22 x i8] c"void staticFunction()\00" -#include <stdio.h> +int printf(const char *, ...); void plainFunction() { printf("__func__ %s\n", __func__); diff --git a/clang/test/CodeGen/volatile-1.c b/clang/test/CodeGen/volatile-1.c index 9df11d249da..3203326eceb 100644 --- a/clang/test/CodeGen/volatile-1.c +++ b/clang/test/CodeGen/volatile-1.c @@ -14,7 +14,7 @@ volatile struct S { } a, b; //void operator =(volatile struct S&o1, volatile struct S&o2) volatile; -#include <stdio.h> +int printf(const char *, ...); int main() { // A use. |