2009-07-06 23:36:23 +08:00
|
|
|
// Insure __block_holder_tmp is allocated on the stack. Darwin only.
|
2009-07-01 23:40:10 +08:00
|
|
|
// RUN: %llvmgxx %s -S -O2 -o - | egrep {__block_holder_tmp.*alloca}
|
2009-07-06 23:36:23 +08:00
|
|
|
// XFAIL: *
|
|
|
|
// XTARGET: darwin
|
2009-07-01 23:40:10 +08:00
|
|
|
// <rdar://problem/5865221>
|
2009-07-06 23:36:23 +08:00
|
|
|
// END.
|
2009-07-01 23:40:10 +08:00
|
|
|
extern void fubar_dispatch_sync(void (^PP)(void));
|
|
|
|
void fubar() {
|
|
|
|
__block void *voodoo;
|
|
|
|
fubar_dispatch_sync(^(void){voodoo=0;});
|
|
|
|
}
|