]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/BlocksRuntime/hasdescriptor.c
2 // The LLVM Compiler Infrastructure
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
12 #include <Block_private.h>
15 int main(int argc
, char *argv
[]) {
16 void (^inner
)(void) = ^ { printf("argc was %d\n", argc
); };
17 void (^outer
)(void) = ^{
21 //printf("size of inner is %ld\n", Block_size(inner));
22 //printf("size of outer is %ld\n", Block_size(outer));
23 if (Block_size(inner
) != Block_size(outer
)) {
24 printf("not the same size, using old compiler??\n");
27 printf("%s: Success\n", argv
[0]);