OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [pr45878.m] - Rev 704

Compare with Previous | Blame | View Log

/* { 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])
    {
      ;
    }
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.