summaryrefslogtreecommitdiff
path: root/test/Parser/check-syntax-1.m
blob: 8ad207270c3ff0ad0130b9f2bcf2ff5ea9347d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang -cc1 -fsyntax-only -verify %s

int @interface bla  ; // expected-error {{cannot combine with previous 'int' declaration specifier}}
@end

typedef float CGFloat;
@interface XNSNumber 
+ (XNSNumber *) numberWithCGFloat  : (CGFloat) float; // expected-error {{expected identifier}}  \
                                                      // expected-error {{ expected ';' after method prototype}}
@end