1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -x objective-c %s -o - | FileCheck %s
2// rdar://13192366
3typedef signed char BOOL;
4@interface NSObject
5{
6  id isa;
7}
8@end
9
10@interface MyClass : NSObject
11
12@property (readwrite) BOOL boolean1;
13@property (readwrite, copy) id object1;
14@property (readwrite) BOOL boolean2;
15@property (readwrite, copy) id object2;
16@property (readwrite) BOOL boolean3;
17@property (readwrite, copy) id object3;
18@property (readwrite) BOOL boolean4;
19@property (readwrite, copy) id object4;
20@property (readwrite) BOOL boolean5;
21@property (readwrite, copy) id object5;
22@property (readwrite) BOOL boolean6;
23@property (readwrite, copy) id object6;
24@property (readwrite) BOOL boolean7;
25@property (readwrite) BOOL MyBool;
26@property (readwrite, copy) id object7;
27@property (readwrite) BOOL boolean8;
28@property (readwrite, copy) id object8;
29@property (readwrite) BOOL boolean9;
30@property (readwrite, copy) id object9;
31@end
32
33@implementation MyClass
34{
35  id MyIvar;
36  BOOL _MyBool;
37  char * pc;
38}
39@end
40
41// CHECK: @{{.*}} = private global [10 x i8] c"_boolean1
42// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean2
43// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean3
44// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean4
45// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean5
46// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean6
47// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean7
48// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean8
49// CHECK-NEXT: @{{.*}} = private global [10 x i8] c"_boolean9
50// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object1
51// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object2
52// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object3
53// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object4
54// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object5
55// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object6
56// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object7
57// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object8
58// CHECK-NEXT: @{{.*}} = private global [9 x i8] c"_object9
59