1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o - %s | FileCheck %s
2// rdar://10073896
3
4@interface I
5{
6  __weak id wObject;
7}
8@property (readwrite, weak) id representedObject;
9@property (readwrite, weak) id wObject;
10@property (readwrite, weak) __weak id wRandom;
11@property (readwrite, assign) __weak id wAnother;
12@end
13
14@implementation I
15@synthesize representedObject;
16@synthesize wObject;
17@synthesize wRandom;
18@synthesize wAnother;
19@end
20// CHECK:  call i8* @objc_read_weak
21// CHECK:  call i8* @objc_assign_weak
22// CHECK:  call i8* @objc_read_weak
23// CHECK:  call i8* @objc_assign_weak
24// CHECK:  call i8* @objc_read_weak
25// CHECK:  call i8* @objc_assign_weak
26// CHECK:  call i8* @objc_read_weak
27// CHECK:  call i8* @objc_assign_weak
28
29