blob: 34b41ad964f5a8707e4b36020ecbdd03f454b1ab [file] [log] [blame]
Duncan Sands8182ac62010-11-25 21:46:07 +00001// RUN: %llvmgcc -S %s -fobjc-gc -o /dev/null
Devang Patel7aa944d2007-05-03 00:42:22 +00002typedef int NSInteger;
3typedef struct _NSRect {
4 int origin;
5 int size;
6} NSRect;
7
8__attribute__((objc_gc(strong))) NSRect *_cachedRectArray;
9extern const NSRect NSZeroRect;
10@interface A{
11}
12-(void)bar:(NSInteger *)rectCount;
13@end
14
15@implementation A
16
17-(void)bar:(NSInteger *)rectCount {
18 NSRect appendRect = NSZeroRect;
19
20 _cachedRectArray[*rectCount - 1] = NSZeroRect;
21}
22
23@end