diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-29 17:27:48 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-29 17:27:48 +0000 |
| commit | 32dc41c4454372306e63c3c204071aa6f51ef6bf (patch) | |
| tree | 59fc202e7750e32c14bf0240e488c62a0fb4a167 /clang/test/Parser/objc-foreach-error-1.m | |
| parent | efb0f111f1a803990602f67ea16ac14c5a43f671 (diff) | |
| download | bcm5719-llvm-32dc41c4454372306e63c3c204071aa6f51ef6bf.tar.gz bcm5719-llvm-32dc41c4454372306e63c3c204071aa6f51ef6bf.zip | |
hoist some code for handling objc foreach construct out of Declaration processing
into ParseForStatement. Merge two tests into one.
llvm-svn: 68010
Diffstat (limited to 'clang/test/Parser/objc-foreach-error-1.m')
| -rw-r--r-- | clang/test/Parser/objc-foreach-error-1.m | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/clang/test/Parser/objc-foreach-error-1.m b/clang/test/Parser/objc-foreach-error-1.m deleted file mode 100644 index 16a7ea8e3dc..00000000000 --- a/clang/test/Parser/objc-foreach-error-1.m +++ /dev/null @@ -1,24 +0,0 @@ -// RUN: clang-cc -fsyntax-only -verify %s - -ce MyList // expected-error {{invalid token after top level declarator}} -@end - - -@implementation MyList -- (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount -{ - return 0; -} -@end - - -int LOOP(); - -@implementation MyList (BasicTest) // expected-error {{cannot find interface declaration for 'MyList'}} -- (void)compilerTestAgainst { -MyList * el; // expected-error {{use of undeclared identifier 'MyList'}} - for (el in @"foo") // expected-error {{use of undeclared identifier 'el'}} - { LOOP(); } -} -@end - |

