blob: 490c0559d10832db56d0700399fff5d86fc57c2f [file] [log] [blame]
Fariborz Jahanian55edca92011-02-23 00:11:21 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2// rdar://7029784
3
4@interface A
5-(id) f0 { // expected-error {{expected ';' after method prototype}}
6 assert(0);
7}
8@end
9
10@interface B
11-(id) f0 { // expected-error {{expected ';' after method prototype}}
12 assert(0);
13@end
14
15@interface C
16- (id) f0 { // expected-error {{expected ';' after method prototype}}
17 assert(0);
18};
19@end
20
21@interface D
22- (id) f0 { // expected-error {{expected ';' after method prototype}}
23 assert(0);
24@property int P;
25@end