blob: 0ae0c5dc2934da2eb0af16a9561b6d979fc17895 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian0de2ae22008-01-02 19:17:38 +00002
3int @interface bla ; // expected-error {{cannot combine with previous 'int' declaration specifier}}
4@end
Fariborz Jahanian3688fc62009-06-24 17:00:18 +00005
6typedef float CGFloat;
7@interface XNSNumber
8+ (XNSNumber *) numberWithCGFloat : (CGFloat) float; // expected-error {{expected identifier}} \
Richard Trieu2fe9b7f2011-12-15 00:38:15 +00009 // expected-error {{expected ';' after method prototype}}
Fariborz Jahanian3688fc62009-06-24 17:00:18 +000010@end
11
Fariborz Jahanian05511fa2010-04-02 23:15:40 +000012// rdar: // 7822196
13@interface A
Fariborz Jahanian5512ba52010-04-26 21:18:08 +000014(void) x; // expected-error {{method type specifier must start with '-' or '+'}}
Fariborz Jahanian05511fa2010-04-02 23:15:40 +000015(int)im; // expected-error {{method type specifier must start with '-' or '+'}} \
16- ok;
17@end
18
19