Debian Codegraph @

clang/test/SemaObjC/method-return-void.m

raw
1 // RUN: %clang_cc1 -Wmethod-signatures -fsyntax-only -verify -Wno-objc-root-class %s
2
3 @interface Test
4 - (int)foo;
5 @end
6
7 @implementation Test
8 - (int)foo { return; } // expected-error {{non-void method 'foo' should return a value}}
9 @end