2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2008-01-03 03:17:38 +08:00
|
|
|
|
|
|
|
int @interface bla ; // expected-error {{cannot combine with previous 'int' declaration specifier}}
|
|
|
|
@end
|
2009-06-25 01:00:18 +08:00
|
|
|
|
|
|
|
typedef float CGFloat;
|
|
|
|
@interface XNSNumber
|
|
|
|
+ (XNSNumber *) numberWithCGFloat : (CGFloat) float; // expected-error {{expected identifier}} \
|
2011-12-15 08:38:15 +08:00
|
|
|
// expected-error {{expected ';' after method prototype}}
|
2009-06-25 01:00:18 +08:00
|
|
|
@end
|
|
|
|
|
2010-04-03 07:15:40 +08:00
|
|
|
// rdar: // 7822196
|
|
|
|
@interface A
|
2010-04-27 05:18:08 +08:00
|
|
|
(void) x; // expected-error {{method type specifier must start with '-' or '+'}}
|
2010-04-03 07:15:40 +08:00
|
|
|
(int)im; // expected-error {{method type specifier must start with '-' or '+'}} \
|
|
|
|
- ok;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|