summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/syntax-error-6.mm
blob: 21423ec7eb73b7c0e624e5df92c980129eadddc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

@interface NSButton
- (int) state;
@end

void FOO()
{
  NSButton * mCopyAcrobatCB; 
	
  [ [ mCopyAcrobatCB state ] == 0 ] != 1;  /* { dg-error "objective\\-c\\+\\+" } */
}