]> git.proxmox.com Git - rustc.git/blame - src/compiler-rt/test/BlocksRuntime/sizeof.c
New upstream version 1.19.0+dfsg3
[rustc.git] / src / compiler-rt / test / BlocksRuntime / sizeof.c
CommitLineData
1a4d82fc
JJ
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
19int 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}