summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/block-return.c
diff options
context:
space:
mode:
authorJean-Daniel Dupas <devlists@shadowlab.org>2012-01-27 23:21:02 +0000
committerJean-Daniel Dupas <devlists@shadowlab.org>2012-01-27 23:21:02 +0000
commit400dd1c3d03733a57a3cc8f9870b5fcab388d62a (patch)
tree5bc5d6e111213609be006709eee0b2edaf9b664b /clang/test/Sema/block-return.c
parentc26e5fb86b65b2c72b850a06a822b8af15890613 (diff)
downloadbcm5719-llvm-400dd1c3d03733a57a3cc8f9870b5fcab388d62a.tar.gz
bcm5719-llvm-400dd1c3d03733a57a3cc8f9870b5fcab388d62a.zip
Remove the "C" in "implicitly declaring C library function" diagnostic
because all functions are not C functions (i.e. NSLog). llvm-svn: 149150
Diffstat (limited to 'clang/test/Sema/block-return.c')
-rw-r--r--clang/test/Sema/block-return.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/block-return.c b/clang/test/Sema/block-return.c
index 70fb3e104e9..e8c651652bc 100644
--- a/clang/test/Sema/block-return.c
+++ b/clang/test/Sema/block-return.c
@@ -81,7 +81,7 @@ void foo4() {
int (^xx)(const char *s) = ^(char *s) { return 1; }; // expected-error {{incompatible block pointer types initializing 'int (^)(const char *)' with an expression of type 'int (^)(char *)'}}
int (*yy)(const char *s) = funk; // expected-warning {{incompatible pointer types initializing 'int (*)(const char *)' with an expression of type 'int (char *)'}}
- int (^nested)(char *s) = ^(char *str) { void (^nest)(void) = ^(void) { printf("%s\n", str); }; next(); return 1; }; // expected-warning{{implicitly declaring C library function 'printf' with type 'int (const char *, ...)'}} \
+ int (^nested)(char *s) = ^(char *str) { void (^nest)(void) = ^(void) { printf("%s\n", str); }; next(); return 1; }; // expected-warning{{implicitly declaring library function 'printf' with type 'int (const char *, ...)'}} \
// expected-note{{please include the header <stdio.h> or explicitly provide a declaration for 'printf'}}
}
OpenPOWER on IntegriCloud