1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -fblocks -Dnil=0 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -o - %s 2*f4a2713aSLionel Sambucint main() { 3*f4a2713aSLionel Sambuc __weak __block id foo = nil; 4*f4a2713aSLionel Sambuc __block id foo2 = nil; 5*f4a2713aSLionel Sambuc id foo3 = nil; 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc void (^myblock)() = ^{ 8*f4a2713aSLionel Sambuc foo = nil; 9*f4a2713aSLionel Sambuc foo2 = nil; 10*f4a2713aSLionel Sambuc [foo3 bar]; 11*f4a2713aSLionel Sambuc id foo4 = foo3; 12*f4a2713aSLionel Sambuc }; 13*f4a2713aSLionel Sambuc} 14