summaryrefslogtreecommitdiffstats
path: root/clang/test/Rewriter/finally.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Rewriter/finally.m')
-rw-r--r--clang/test/Rewriter/finally.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Rewriter/finally.m b/clang/test/Rewriter/finally.m
index e60ba9ec8526..33b919e4b3ef 100644
--- a/clang/test/Rewriter/finally.m
+++ b/clang/test/Rewriter/finally.m
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -fobjc-exceptions -verify %s -o -
-int main() {
+int main(void) {
@try {
printf("executing try"); // expected-warning{{implicitly declaring library function 'printf' with type 'int (const char *, ...)'}} \
// expected-note{{include the header <stdio.h> or explicitly provide a declaration for 'printf'}}
@@ -25,14 +25,14 @@ int main() {
return 0;
}
-void test_sync_with_implicit_finally() {
+void test_sync_with_implicit_finally(void) {
id foo;
@synchronized (foo) {
return; // The rewriter knows how to generate code for implicit finally
}
}
-void test2_try_with_implicit_finally() {
+void test2_try_with_implicit_finally(void) {
@try {
return; // The rewriter knows how to generate code for implicit finally
} @catch (id e) {