llvm.org GIT mirror llvm / 10c9a82
New test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36661 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 13 years ago
1 changed file(s) with 23 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: %llvmgcc -c %s -fobjc-gc -o /dev/null
1 typedef int NSInteger;
2 typedef struct _NSRect {
3 int origin;
4 int size;
5 } NSRect;
6
7 __attribute__((objc_gc(strong))) NSRect *_cachedRectArray;
8 extern const NSRect NSZeroRect;
9 @interface A{
10 }
11 -(void)bar:(NSInteger *)rectCount;
12 @end
13
14 @implementation A
15
16 -(void)bar:(NSInteger *)rectCount {
17 NSRect appendRect = NSZeroRect;
18
19 _cachedRectArray[*rectCount - 1] = NSZeroRect;
20 }
21
22 @end