forked from OSchip/llvm-project
11 lines
333 B
Objective-C
11 lines
333 B
Objective-C
// 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}}
|
|
}
|