Stuart Hastings | 4b201f8 | 2009-07-01 15:40:10 +0000 | [diff] [blame^] | 1 | // 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> | ||||
4 | extern void fubar_dispatch_sync(void (^PP)(void)); | ||||
5 | void fubar() { | ||||
6 | __block void *voodoo; | ||||
7 | fubar_dispatch_sync(^(void){voodoo=0;}); | ||||
8 | } |