xref: /llvm-project/clang/test/SemaObjC/method-return-void.m (revision acf3bdc283ecf6e2c3a85a391a24becc4814b8b8)
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
10