You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include "Test.h"
|
|
|
|
int main(int argc, const char * argv[])
|
|
{
|
|
id __weak ref;
|
|
@autoreleasepool {
|
|
__block int val;
|
|
id block = ^() { return val++; };
|
|
assert(block != nil);
|
|
ref = block;
|
|
assert(ref != nil);
|
|
}
|
|
assert(ref == nil);
|
|
return 0;
|
|
}
|