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
6/*
7 * shorthandexpression.c
8 * testObjects
9 *
10 * Created by Blaine Garst on 9/16/08.
11 *
12 * CONFIG error:
13 */
14
15
16void foo() {
17 void (^b)(void) = ^(void)printf("hello world\n");
18}
19
20int main(int argc, char *argv[]) {
21 printf("%s: this shouldn't compile\n", argv[0]);
22 return 1;
23}
24

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