1//
2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3// See https://llvm.org/LICENSE.txt for license information.
4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
6/*
7 * sizeof.c
8 * testObjects
9 *
10 * Created by Blaine Garst on 2/17/09.
11 *
12 */
13
14#include <stdio.h>
15
16// CONFIG error:
17
18int main(int argc, char *argv[]) {
19
20 void (^aBlock)(void) = ^{ printf(format: "hellow world\n"); };
21
22 printf(format: "the size of a block is %ld\n", sizeof(*aBlock));
23 printf(format: "%s: success\n", argv[0]);
24 return 0;
25}
26

source code of compiler-rt/test/BlocksRuntime/sizeof.c