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>
6
7// CONFIG
8
9int AGlobal;
10
11int main(int argc, char *argv[]) {
12 void (^f)(void) = ^ { AGlobal++; };
13
14 printf(format: "%s: success\n", argv[0]);
15 return 0;
16
17}
18

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