xref: /llvm-project/compiler-rt/test/BlocksRuntime/orbars.c (revision 2946cd701067404b99c39fb29dc9c74bd7193eb3)
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  *  orbars.c
8  *  testObjects
9  *
10  *  Created by Blaine Garst on 9/17/08.
11  *
12  *  CONFIG rdar://6276695 error: before ‘|’ token
13  */
14 
15 #include <stdio.h>
16 
main(int argc,char * argv[])17 int main(int argc, char *argv[]) {
18     int i = 10;
19     void (^b)(void) = ^(void){ | i | printf("hello world, %d\n", ++i); };
20     printf("%s: success :-(\n", argv[0]);
21     return 0;
22 }
23