]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/test/BlocksRuntime/sizeof.c
New upstream version 1.20.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / test / BlocksRuntime / sizeof.c
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6
7 /*
8 * sizeof.c
9 * testObjects
10 *
11 * Created by Blaine Garst on 2/17/09.
12 *
13 */
14
15 #include <stdio.h>
16
17 // CONFIG error:
18
19 int main(int argc, char *argv[]) {
20
21 void (^aBlock)(void) = ^{ printf("hellow world\n"); };
22
23 printf("the size of a block is %ld\n", sizeof(*aBlock));
24 printf("%s: success\n", argv[0]);
25 return 0;
26 }