brintos

brintos / llvm-project-archived public Read only

0
0
Text · 545 B · e7c0018 Raw
23 lines · c
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-exception5 6/*7 *  orbars.c8 *  testObjects9 *10 *  Created by Blaine Garst on 9/17/08.11 *12 *  CONFIG rdar://6276695 error: before ‘|’ token13 */14 15#include <stdio.h>16 17int 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