Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / BlocksRuntime / modglobal.c
blobc76e8b6c7b7fa889c589e4cfe26f3710c62fc6fb
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 #include <stdio.h>
7 // CONFIG
9 int AGlobal;
11 int main(int argc, char *argv[]) {
12 void (^f)(void) = ^ { AGlobal++; };
14 printf("%s: success\n", argv[0]);
15 return 0;