Skip to content

Instantly share code, notes, and snippets.

@liyanage
Created November 25, 2009 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liyanage/242968 to your computer and use it in GitHub Desktop.
Save liyanage/242968 to your computer and use it in GitHub Desktop.
// CFLAGS='-arch i386' make blockstest && ./blockstest
#include <stdio.h>
#include <Block.h>
int main() {
int(^foo)() = ^() {
return 1+1;
};
foo();
printf("%p %p %p\n", (void *)foo, &foo, (void *)Block_copy(foo));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment