xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/protocol-property-synth.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc@interface BaseClass {
4*f4a2713aSLionel Sambuc    id _delegate;
5*f4a2713aSLionel Sambuc}
6*f4a2713aSLionel Sambuc@end
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambuc@protocol MyProtocol
9*f4a2713aSLionel Sambuc@optional
10*f4a2713aSLionel Sambuc@property(assign) id delegate;
11*f4a2713aSLionel Sambuc@end
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambuc@protocol AnotherProtocol
14*f4a2713aSLionel Sambuc@optional
15*f4a2713aSLionel Sambuc@property(assign) id myanother;
16*f4a2713aSLionel Sambuc@end
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel Sambuc@protocol SubProtocol <MyProtocol>
19*f4a2713aSLionel Sambuc@property(assign) id another;
20*f4a2713aSLionel Sambuc@end
21*f4a2713aSLionel Sambuc
22*f4a2713aSLionel Sambuc@interface SubClass : BaseClass <SubProtocol, AnotherProtocol> {
23*f4a2713aSLionel Sambuc}
24*f4a2713aSLionel Sambuc
25*f4a2713aSLionel Sambuc@end
26*f4a2713aSLionel Sambuc
27*f4a2713aSLionel Sambuc@implementation BaseClass @end
28*f4a2713aSLionel Sambuc
29*f4a2713aSLionel Sambuc@implementation SubClass
30*f4a2713aSLionel Sambuc@synthesize delegate = _Subdelegate;
31*f4a2713aSLionel Sambuc@synthesize another;
32*f4a2713aSLionel Sambuc@synthesize myanother;
33*f4a2713aSLionel Sambuc@end
34