| 1 | // RUN: %clang_cc1 %s -emit-llvm -o - |
|---|---|
| 2 | |
| 3 | // <rdar://problem/9123036> crash due to forward-declared struct in |
| 4 | // protocol method parameter. |
| 5 | |
| 6 | @protocol P |
| 7 | - (void) A:(struct z) z; |
| 8 | @end |
| 9 | @interface I < P > |
| 10 | @end |
| 11 | @implementation I |
| 12 | @end |
| 13 | |
| 14 | @interface I2 |
| 15 | - (void) A:(struct z2) z2; |
| 16 | @end |
| 17 | @implementation I2 |
| 18 | @end |
| 19 | |
| 20 |