Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / BlocksRuntime / sizeof.c
blob2bd1f4862b647e38f164a9bc30cbd68b8ae1e1b4
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
6 /*
7 * sizeof.c
8 * testObjects
10 * Created by Blaine Garst on 2/17/09.
14 #include <stdio.h>
16 // CONFIG error:
18 int main(int argc, char *argv[]) {
20 void (^aBlock)(void) = ^{ printf("hellow world\n"); };
22 printf("the size of a block is %ld\n", sizeof(*aBlock));
23 printf("%s: success\n", argv[0]);
24 return 0;