blob: 4816be215ac8a97cf250b8d84969b1d983fa1272 [file] [log] [blame]
/* APPLE LOCAL file radar 5130983 */
/* Test that only lvalue may be a selector expression. */
/* { dg-options "-mmacosx-version-min=10.5" } */
/* { dg-do compile } */
id foo();
int main() {
id a;
for (foo() in a)
{
} /* { dg-error "selector element must be an lvalue" } */
}