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
10 // Created by Blaine Garst on 6/24/08.
12 // pure C nothing more needed
22 void callVoidVoid(void (^closure
)(void)) {
26 int main(int argc
, char *argv
[]) {
31 callVoidVoid(^{ Global
= i
; });
38 printf("%s: error, Global not set to captured value\n", argv
[0]);
41 printf("%s: success\n", argv
[0]);