Daniel Dunbar | 718bb48 | 2009-09-22 03:50:39 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -triple i386-apple-darwin9 -g -emit-llvm %s -o - | FileCheck %s |
Daniel Dunbar | a626b01 | 2009-09-22 02:18:40 +0000 | [diff] [blame] | 2 | // 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 Dunbar | d739021 | 2009-11-03 07:25:45 +0000 | [diff] [blame] | 6 | // XFAIL: * |
Daniel Dunbar | a626b01 | 2009-09-22 02:18:40 +0000 | [diff] [blame] | 7 | |
| 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 |
| 26 | typedef 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 |