Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 056e3a4 | 2008-01-02 19:17:38 +0000 | [diff] [blame] | 2 | |
| 3 | int @interface bla ; // expected-error {{cannot combine with previous 'int' declaration specifier}} |
| 4 | @end |
Fariborz Jahanian | 6e9e4f3 | 2009-06-24 17:00:18 +0000 | [diff] [blame] | 5 | |
| 6 | typedef float CGFloat; |
| 7 | @interface XNSNumber |
| 8 | + (XNSNumber *) numberWithCGFloat : (CGFloat) float; // expected-error {{expected identifier}} \ |
Richard Trieu | 553b2b2 | 2011-12-15 00:38:15 +0000 | [diff] [blame] | 9 | // expected-error {{expected ';' after method prototype}} |
Fariborz Jahanian | 6e9e4f3 | 2009-06-24 17:00:18 +0000 | [diff] [blame] | 10 | @end |
| 11 | |
Fariborz Jahanian | d077f71 | 2010-04-02 23:15:40 +0000 | [diff] [blame] | 12 | // rdar: // 7822196 |
| 13 | @interface A |
Fariborz Jahanian | 65654df | 2010-04-26 21:18:08 +0000 | [diff] [blame] | 14 | (void) x; // expected-error {{method type specifier must start with '-' or '+'}} |
Fariborz Jahanian | d077f71 | 2010-04-02 23:15:40 +0000 | [diff] [blame] | 15 | (int)im; // expected-error {{method type specifier must start with '-' or '+'}} \ |
| 16 | - ok; |
| 17 | @end |
| 18 | |
| 19 | |