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