diff options
Diffstat (limited to 'test/ARCMT/GC.m.result')
-rw-r--r-- | test/ARCMT/GC.m.result | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/ARCMT/GC.m.result b/test/ARCMT/GC.m.result index cdf6431dbf..a492f02970 100644 --- a/test/ARCMT/GC.m.result +++ b/test/ARCMT/GC.m.result @@ -9,3 +9,27 @@ void test1(CFTypeRef *cft) { id x = CFBridgingRelease(cft); } + +@interface I1 +@end + +@implementation I1 +-(void)dealloc { + // dealloc + test1(0); +} + +@end + +@interface I2 +@property id prop; +@end + +@implementation I2 +@synthesize prop; + +-(void)dealloc { + // finalize + test1(0); +} +@end |