xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/forward-decl-param.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 %s -emit-llvm -o -
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc// <rdar://problem/9123036> crash due to forward-declared struct in
4*f4a2713aSLionel Sambuc// protocol method parameter.
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@protocol P
7*f4a2713aSLionel Sambuc- (void) A:(struct z) z;
8*f4a2713aSLionel Sambuc@end
9*f4a2713aSLionel Sambuc@interface I < P >
10*f4a2713aSLionel Sambuc@end
11*f4a2713aSLionel Sambuc@implementation I
12*f4a2713aSLionel Sambuc@end
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel Sambuc@interface I2
15*f4a2713aSLionel Sambuc- (void) A:(struct z2) z2;
16*f4a2713aSLionel Sambuc@end
17*f4a2713aSLionel Sambuc@implementation I2
18*f4a2713aSLionel Sambuc@end
19*f4a2713aSLionel Sambuc
20