freebsd-dev/test/Parser/check-syntax-1.m

20 lines
624 B
Mathematica
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-06-02 17:58:47 +00:00
int @interface bla ; // expected-error {{cannot combine with previous 'int' declaration specifier}}
@end
2009-06-27 10:45:02 +00:00
typedef float CGFloat;
@interface XNSNumber
+ (XNSNumber *) numberWithCGFloat : (CGFloat) float; // expected-error {{expected identifier}} \
// expected-error {{expected ';' after method prototype}}
2009-06-27 10:45:02 +00:00
@end
2010-04-03 07:51:34 +00:00
// rdar: // 7822196
@interface A
2010-05-04 16:12:48 +00:00
(void) x; // expected-error {{method type specifier must start with '-' or '+'}}
2010-04-03 07:51:34 +00:00
(int)im; // expected-error {{method type specifier must start with '-' or '+'}} \
- ok;
@end