diff options
Diffstat (limited to 'clang/test/SemaObjC/no-gc-weak-test.m')
-rw-r--r-- | clang/test/SemaObjC/no-gc-weak-test.m | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/no-gc-weak-test.m b/clang/test/SemaObjC/no-gc-weak-test.m new file mode 100644 index 0000000..dd9b73c --- /dev/null +++ b/clang/test/SemaObjC/no-gc-weak-test.m @@ -0,0 +1,28 @@ +// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s + +@interface Subtask +{ + id _delegate; +} +@property(nonatomic,readwrite,assign) id __weak delegate; +@end + +@implementation Subtask +@synthesize delegate = _delegate; +@end + + +@interface PVSelectionOverlayView2 +{ + id __weak _selectionRect; +} + +@property(assign) id selectionRect; + +@end + +@implementation PVSelectionOverlayView2 + +@synthesize selectionRect = _selectionRect; +@end + |