When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / FrontendObjC / 2007-05-02-Strong.m
blob34b41ad964f5a8707e4b36020ecbdd03f454b1ab
1 // RUN: %llvmgcc -S %s -fobjc-gc -o /dev/null
2 typedef int NSInteger;
3 typedef struct _NSRect {
4   int origin;
5   int size;
6 } NSRect;
8 __attribute__((objc_gc(strong))) NSRect *_cachedRectArray;
9 extern const NSRect NSZeroRect;
10 @interface A{
12 -(void)bar:(NSInteger *)rectCount;
13 @end
15 @implementation A 
17 -(void)bar:(NSInteger *)rectCount {
18   NSRect appendRect = NSZeroRect; 
20   _cachedRectArray[*rectCount - 1] = NSZeroRect; 
23 @end