Debian Codegraph @

clang/test/SemaObjC/return-noreturn.m

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