Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Chris Lattner | 1e57144 | 2007-12-27 21:46:27 +0000 | [diff] [blame] | 2 | |
Daniel Dunbar | 246e70f | 2008-09-26 04:48:09 +0000 | [diff] [blame] | 3 | // FIXME: This is a horrible error message here. Fix. |
| 4 | int @"s" = 5; // expected-error {{prefix attribute must be}} |
Chris Lattner | 1fd8011 | 2009-01-09 04:34:13 +0000 | [diff] [blame] | 5 | |
| 6 | |
| 7 | // rdar://6480479 |
| 8 | @interface A |
| 9 | }; // expected-error {{missing @end}} expected-error {{expected external declaration}} |
| 10 | |
Chris Lattner | eb483eb | 2010-04-11 08:28:14 +0000 | [diff] [blame^] | 11 | |
| 12 | |
| 13 | |
| 14 | // PR6811 |
| 15 | // 'super' isn't an expression, it is a magic context-sensitive keyword. |
| 16 | @interface A2 { |
| 17 | id isa; |
| 18 | } |
| 19 | - (void)a; |
| 20 | @end |
| 21 | |
| 22 | @interface B2 : A2 @end |
| 23 | @implementation B2 |
| 24 | - (void)a |
| 25 | { |
| 26 | [(super) a]; // expected-error {{use of undeclared identifier 'super'}} |
| 27 | } |
| 28 | @end |