☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
SemaObjC
/
method-return-void.m
☽
☼
clang/test/SemaObjC/method-return-void.m
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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