1// RUN: %clang_cc1 %s -fsyntax-only -fobjc-exceptions -verify -Wreturn-type -Wmissing-noreturn
2
3id f(id self) {
4} // expected-warning {{non-void function does not return a value}}
5
6id f2(id self) {
7 @try {
8 @throw (id)0;
9 } @catch (id) {
10 }
11 return (id)0;
12}
13
14