repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
method-return-void.m
blob
850c81bad1fcada6d8177643f396a2891beb2696
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