blob: 6f8869c5413a21ecfb55cab62164795e93651663 [file] [log] [blame]
Stuart Hastings4b201f82009-07-01 15:40:10 +00001// Insure __block_holder_tmp is allocated on the stack.
2// RUN: %llvmgxx %s -S -O2 -o - | egrep {__block_holder_tmp.*alloca}
3// <rdar://problem/5865221>
4extern void fubar_dispatch_sync(void (^PP)(void));
5void fubar() {
6 __block void *voodoo;
7 fubar_dispatch_sync(^(void){voodoo=0;});
8}