diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 08:57:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-17 08:57:36 +0000 |
commit | 23afaad895486d4a9ea672f497b63ebc4c588955 (patch) | |
tree | 75ab5d372d092a24f06d9f39803276bba5e20b57 /test/CodeGen | |
parent | b1295dace2e29a2391aad86b877ef3fd5545ddea (diff) |
Don't #include <stdio.h> when tests don't need it, or use clang instead of clang-cc when they do.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/PR3589-freestanding-libcalls.c | 2 | ||||
-rw-r--r-- | test/CodeGen/blocks-1.c | 2 | ||||
-rw-r--r-- | test/CodeGen/builtins.c | 2 | ||||
-rw-r--r-- | test/CodeGen/constructor-attribute.c | 2 | ||||
-rw-r--r-- | test/CodeGen/mandel.c | 2 | ||||
-rw-r--r-- | test/CodeGen/predefined-expr.c | 2 | ||||
-rw-r--r-- | test/CodeGen/volatile-1.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/test/CodeGen/PR3589-freestanding-libcalls.c b/test/CodeGen/PR3589-freestanding-libcalls.c index b2d2275379..1460813718 100644 --- a/test/CodeGen/PR3589-freestanding-libcalls.c +++ b/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/test/CodeGen/blocks-1.c b/test/CodeGen/blocks-1.c index 5b639d10be..ae5a74aab6 100644 --- a/test/CodeGen/blocks-1.c +++ b/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/test/CodeGen/builtins.c b/test/CodeGen/builtins.c index b4db48ae4b..11bcc14249 100644 --- a/test/CodeGen/builtins.c +++ b/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/test/CodeGen/constructor-attribute.c b/test/CodeGen/constructor-attribute.c index 69e7063eab..b715201dc5 100644 --- a/test/CodeGen/constructor-attribute.c +++ b/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/test/CodeGen/mandel.c b/test/CodeGen/mandel.c index 27993f0559..9d7956c56d 100644 --- a/test/CodeGen/mandel.c +++ b/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/test/CodeGen/predefined-expr.c b/test/CodeGen/predefined-expr.c index 9b645931a4..1a5dcb4fc6 100644 --- a/test/CodeGen/predefined-expr.c +++ b/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/test/CodeGen/volatile-1.c b/test/CodeGen/volatile-1.c index 9df11d249d..3203326ece 100644 --- a/test/CodeGen/volatile-1.c +++ b/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. |