summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/pr45878.m
blob: 39fd6c3cd89f18c784f164384e96911a64a07011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* { dg-do compile } */
/* { dg-options "-O2 -fexceptions" } */

typedef struct objc_object { Class class_pointer; } *id;
typedef unsigned char  BOOL;

@interface Object
{
  Class isa;
}
- (BOOL)isEqual: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" isEqual: (id)0])
    {
      ;
    }
}