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