1 // RUN: %llvmgcc -x objective-c -S %s -fobjc-gc -o - | grep objc_assign_strongCast
5 void (^ivarBlock)(void);
8 int main(char *argc, char *argv[]) {
9 StructWithBlock_t *swbp = (StructWithBlock_t *)malloc(sizeof(StructWithBlock_t*));
11 // assigning a Block into an struct slot should elicit a write-barrier under GC
12 swbp->ivarBlock = ^ { ++i; };