xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/dot-syntax-2.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc// rdar: // 8062778
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc@interface NSDictionary @end
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@interface NSMutableDictionary : NSDictionary
7*f4a2713aSLionel Sambuc@end
8*f4a2713aSLionel Sambuc
9*f4a2713aSLionel Sambuc@interface MutableMyClass
10*f4a2713aSLionel Sambuc- (NSMutableDictionary *)myDict;
11*f4a2713aSLionel Sambuc- (void)setMyDict:(NSDictionary *)myDict;
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambuc- (NSMutableDictionary *)myLang;
14*f4a2713aSLionel Sambuc- (void)setMyLang:(NSDictionary *)myLang;
15*f4a2713aSLionel Sambuc@end
16*f4a2713aSLionel Sambuc
17*f4a2713aSLionel Sambuc@interface AnotherClass @end
18*f4a2713aSLionel Sambuc
19*f4a2713aSLionel Sambuc@implementation AnotherClass
20*f4a2713aSLionel Sambuc- (void)foo
21*f4a2713aSLionel Sambuc{
22*f4a2713aSLionel Sambuc    MutableMyClass * myObject;
23*f4a2713aSLionel Sambuc    NSDictionary * newDict;
24*f4a2713aSLionel Sambuc    myObject.myDict = newDict;
25*f4a2713aSLionel Sambuc    myObject.myLang = newDict;
26*f4a2713aSLionel Sambuc}
27*f4a2713aSLionel Sambuc@end
28