llvm.org GIT mirror llvm / 48c255d
Test for (llvm-gcc) 70231. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70233 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 11 years ago
1 changed file(s) with 44 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: %llvmgcc -S -x objective-c -m64 -fobjc-abi-version=2 %s -o %t
1 // RUN: grep {OBJC_CLASS_RO_\\\$_I4} %t | grep {i32 0, i32 1, i32 2, i32 0}
2 // RUN: grep {OBJC_CLASS_RO_\\\$_I2} %t | grep {i32 0, i32 1, i32 1, i32 0}
3 // RUN: grep {OBJC_CLASS_RO_\\\$_I5} %t | grep {i32 0, i32 0, i32 0, i32 0}
4 // XTARGETS: darwin
5
6 // Test instance variable sizing when base class ends in bitfield
7 @interface I3 {
8 unsigned int _iv2 :1;
9 }
10 @end
11
12 @interface I4 : I3 {
13 char _iv4;
14 }
15 @end
16
17 // Test case with no instance variables in derived class
18 @interface I1 {
19 unsigned int _iv2 :1;
20 }
21 @end
22
23 @interface I2 : I1 {
24 }
25 @end
26
27 // Test case with no instance variables anywhere
28 @interface I6 {
29 }
30 @end
31
32 @interface I5 : I6 {
33 }
34 @end
35
36 @implementation I4
37 @end
38
39 @implementation I2
40 @end
41
42 @implementation I5
43 @end