Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/objc.dg/pr45878.m @ 115:4cb7a319550d
fix c-parser.c
author | mir3636 |
---|---|
date | Tue, 28 Nov 2017 19:31:15 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fexceptions" } */ typedef struct objc_object { Class class_pointer; } *id; typedef unsigned char BOOL; @interface Object { Class isa; } @end @interface Object (Test) - (BOOL)testIsEqual:anObject; @end @implementation Object (Test) - (BOOL)testIsEqual:anObject { return self == anObject; } @end #ifdef __NEXT_RUNTIME__ @interface NSConstantString: Object { char *c_string; unsigned int len; } @end extern void *_NSConstantStringClassReference; #else @interface NXConstantString: Object { char *c_string; unsigned int len; } @end #endif void function (void) { if ([@"strings" testIsEqual: (id)0]) { ; } }