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
8 // test that byref access to locals is accurate
11 // Created by Blaine Garst on 5/13/08.
18 void callVoidVoid(void (^closure
)(void)) {
22 int main(int argc
, char *argv
[]) {
25 callVoidVoid(^{ ++i
; });
28 printf("*** %s didn't update i\n", argv
[0]);
31 printf("%s: success\n", argv
[0]);