diff options
Diffstat (limited to 'test/FrontendObjC/2009-01-26-WriteBarrier-2.m')
-rw-r--r-- | test/FrontendObjC/2009-01-26-WriteBarrier-2.m | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/FrontendObjC/2009-01-26-WriteBarrier-2.m b/test/FrontendObjC/2009-01-26-WriteBarrier-2.m deleted file mode 100644 index 32833a8..0000000 --- a/test/FrontendObjC/2009-01-26-WriteBarrier-2.m +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %llvmgcc -x objective-c -S %s -fobjc-gc -o - | grep objc_assign_strongCast -// rdar://5541393 - -typedef struct { - void (^ivarBlock)(void); -} StructWithBlock_t; - -int main(char *argc, char *argv[]) { - StructWithBlock_t *swbp = (StructWithBlock_t *)malloc(sizeof(StructWithBlock_t*)); - __block int i = 10; - // assigning a Block into an struct slot should elicit a write-barrier under GC - swbp->ivarBlock = ^ { ++i; }; - return 0; -} |