This should probably have these lines:
// XFAIL: *
// XTARGET: darwin-bw
This doesn't work with my llvm-g++ on Linux:;
My apologies.
$ llvm-g++ test/FrontendC++/2009-06-30-ByrefBlock.cpp
test/FrontendC++/2009-06-30-ByrefBlock.cpp: In function 'void fubar()':
test/FrontendC++/2009-06-30-ByrefBlock.cpp:6: error: '__block' was not
declared in this scope
test/FrontendC++/2009-06-30-ByrefBlock.cpp:6: error: expected `;' before
'void'
test/FrontendC++/2009-06-30-ByrefBlock.cpp: In function 'void
__fubar_block_invoke_1(void*)':
test/FrontendC++/2009-06-30-ByrefBlock.cpp:7: error: 'voodoo' was not
declared in this scopeShould it be marked Apple-only? Or should we fix the Linux llvm-g++
build to turn blocks on?
I think this should be marked Apple-only, until everybody else decides to support Apple's "blocks" concept.
Thank you to BIll; I've applied your patch.
stuart