blob: d7379111c11a2a95d1adf78d54fef66e98139ff5 [file] [log] [blame]
Daniel Dunbar718bb482009-09-22 03:50:39 +00001// RUN: clang-cc -triple i386-apple-darwin9 -g -emit-llvm %s -o - | FileCheck %s
Daniel Dunbara626b012009-09-22 02:18:40 +00002// PR4894
3//
4// This test is actually just making sure we can generate the debug info for the
5// return type from im0 without crashing.
Daniel Dunbard7390212009-11-03 07:25:45 +00006// XFAIL: *
Daniel Dunbara626b012009-09-22 02:18:40 +00007
8@interface I0 {
9 I0 *_iv0;
10}
11@end
12@protocol P0 @end
13
14@interface I1 @end
15@implementation I1
16- (I0<P0> *) im0 {
17// CHECK: @"\01-[I1 im0]"
18// CHECK: llvm.dbg.func.start
19 return 0;
20}
21@end
22
23// FIXME: This was another PR4894 test case, which is crashing somewhere
24// else. PR5025.
25#if 0
26typedef const struct objc_selector {
27 void *sel_id;
28 const char *sel_types;
29} *SEL;
30
31@interface I2
32+(id) dictionary;
33@end
34
35@implementation I3;
36+(void) initialize {
37 I2 *a0 = [I2 dictionary];
38}
39@end
40#endif