blob: 17c0379b2535f2db0cd0a6d68c59565bab279f56 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
@class NSArray;
void f(NSArray *a)
{
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}}
}