blob: db37793c560f2e4b81431cccba6fdc321cceee89 [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}} \
9 // expected-error {{ expected ';' after method prototype}}
10@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