blob: 2c8c6f8601d771f91c920a46c6a3804ecd49799e [file] [log] [blame]
/* { dg-do compile } */
@interface NSButton
- (int) state;
@end
void FOO()
{
NSButton * mCopyAcrobatCB;
[ [ mCopyAcrobatCB state ] == 0 ] != 1; /* { dg-error "expected identifier before ... token" } */
/* { dg-error "expected \\\'\\\{\\\' before \\\'!=\\\' token" "" { target *-*-* } .-1 } */
/* { dg-error "lambda expressions only available with" "" { target *-*-* } .-2 } */
/* { dg-error "no match for \\\'operator!=\\\' in" "" { target *-*-* } .-3 } */
}