blob: 085ff4cf67a1b97875a26af3b2904c1b96894823 [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
14(void) x; // expected-error {{method type specifier must start with '-' or '+'}} \
15 // expected-warning {{type specifier missing, defaults to 'int' [-Wimplicit-int]}} \
16 // expected-error {{cannot declare variable inside @interface or @protocol}}
17(int)im; // expected-error {{method type specifier must start with '-' or '+'}} \
18- ok;
19@end
20
21