1 /* RUN: %clang_cc1 -Wall -fsyntax-only -verify -std=c89 -pedantic %s
8 for (int i in a); /* expected-error{{selector element type 'int' is not a valid object}} */
9 for ((id)2 in a); /* expected-error{{selector element is not a valid lvalue}} */
10 for (2 in a); /* expected-error{{selector element is not a valid lvalue}} */
12 /* This should be ok, 'thisKey' should be scoped to the loop in question,
13 * and no diagnostics even in pedantic mode should happen.
16 for (id thisKey in keys);
17 for (id thisKey in keys);