blob: 06153fe042e9ece7a08d5794ec7c951a179b3eeb [file] [log] [blame]
/* APPLE LOCAL file blocks 7184496 */
/* Test __weak attribute on __block objects. */
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-options "-fblocks -ObjC -fobjc-gc" { target *-*-darwin* } } */
/* Radar 7184496 */
void nonweakfofo(void) {
__block (^weakSelf)();
}
void weakfofo(void) {
__block __weak (^weakSelf)();
}
/* { dg-final { scan-assembler "151" } } */
/* { dg-final { scan-assembler "135" } } */