Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 0de2ae2 | 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 | 3688fc6 | 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 | 2fe9b7f | 2011-12-15 00:38:15 +0000 | [diff] [blame] | 9 | // expected-error {{expected ';' after method prototype}} |
Fariborz Jahanian | 3688fc6 | 2009-06-24 17:00:18 +0000 | [diff] [blame] | 10 | @end |
| 11 | |
Fariborz Jahanian | 05511fa | 2010-04-02 23:15:40 +0000 | [diff] [blame] | 12 | // rdar: // 7822196 |
| 13 | @interface A |
Fariborz Jahanian | 5512ba5 | 2010-04-26 21:18:08 +0000 | [diff] [blame] | 14 | (void) x; // expected-error {{method type specifier must start with '-' or '+'}} |
Fariborz Jahanian | 05511fa | 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 | |