[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / Parser / objc-foreach-syntax.m
blobcc82725b17d76925effc7354a5e7e4385099a978
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct __objcFastEnumerationState; 
4 @implementation MyList // expected-warning {{cannot find interface declaration for 'MyList'}}
5 - (unsigned int)countByEnumeratingWithState:  (struct __objcFastEnumerationState *)state objects:  (id *)items count:(unsigned int)stackcount
7      return 0;
9 @end
12 int LOOP();
14 @implementation MyList (BasicTest) 
15 - (void)compilerTestAgainst {
16 MyList * el; 
17      for (el in @"foo") 
18           { LOOP(); }
20 @end
23 static int test7(id keys) {
24   for (id key; in keys) ;  // expected-error {{use of undeclared identifier 'in'}}