[cfe-commits] r69761 - in /cfe/trunk/test/SemaObjC: foreach-1.m foreach.m
Chris Lattner
sabre at nondot.org
Tue Apr 21 17:59:27 PDT 2009
Author: lattner
Date: Tue Apr 21 19:59:27 2009
New Revision: 69761
URL: http://llvm.org/viewvc/llvm-project?rev=69761&view=rev
Log:
rename test
Added:
cfe/trunk/test/SemaObjC/foreach.m
- copied unchanged from r69760, cfe/trunk/test/SemaObjC/foreach-1.m
Removed:
cfe/trunk/test/SemaObjC/foreach-1.m
Removed: cfe/trunk/test/SemaObjC/foreach-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/foreach-1.m?rev=69760&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/foreach-1.m (original)
+++ cfe/trunk/test/SemaObjC/foreach-1.m (removed)
@@ -1,18 +0,0 @@
-/* RUN: clang-cc -fsyntax-only -verify -std=c89 -pedantic %s
- */
-
- at class NSArray;
-
-void f(NSArray *a) {
- id keys;
- for (int i in a); /* expected-error{{selector element type 'int' is not a valid object}} */
- for ((id)2 in a); /* expected-error{{selector element is not a valid lvalue}} */
- for (2 in a); /* expected-error{{selector element is not a valid lvalue}} */
-
- /* This should be ok, 'thisKey' should be scoped to the loop in question,
- * and no diagnostics even in pedantic mode should happen.
- * rdar://6814674
- */
- for (id thisKey in keys);
- for (id thisKey in keys);
-}
More information about the cfe-commits
mailing list