Fariborz Jahanian | 20552d2 | 2008-01-10 20:33:58 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | |
| 3 | ce MyList // expected-error {{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}} |
| 4 | @end |
| 5 | |
| 6 | |
| 7 | @implementation MyList |
| 8 | - (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount |
| 9 | { |
| 10 | return 0; |
| 11 | } |
| 12 | @end |
| 13 | |
| 14 | |
| 15 | int LOOP(); |
| 16 | |
| 17 | @implementation MyList (BasicTest) // expected-error {{cannot find interface declaration for 'MyList'}} |
| 18 | - (void)compilerTestAgainst { |
| 19 | MyList * el; // expected-error {{use of undeclared identifier 'MyList'}} |
Chris Lattner | 13fd7e5 | 2008-06-21 21:44:18 +0000 | [diff] [blame] | 20 | for (el in @"foo") // expected-error {{use of undeclared identifier 'el'}} |
Fariborz Jahanian | 20552d2 | 2008-01-10 20:33:58 +0000 | [diff] [blame] | 21 | { LOOP(); } |
| 22 | } |
| 23 | @end |
| 24 | |