Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / BlocksRuntime / voidarg.c
blob92fba4f1a1c12dfbe6a0a3243a6a5b83e9d2eb35
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 * voidarg.c
8 * testObjects
10 * Created by Blaine Garst on 2/17/09.
14 // PURPOSE should complain about missing 'void' but both GCC and clang are supporting K&R instead
15 // CONFIG open error:
17 #include <stdio.h>
19 int Global;
21 void (^globalBlock)() = ^{ ++Global; }; // should be void (^gb)(void) = ...
23 int main(int argc, char *argv[]) {
24 printf("%s: success", argv[0]);
25 return 0;