summaryrefslogtreecommitdiff
path: root/test/BlocksRuntime/shorthandexpression.c
blob: bf4582072b4831e3bd5830e6b0cc6ce7278e78fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.

/*
 *  shorthandexpression.c
 *  testObjects
 *
 *  Created by Blaine Garst on 9/16/08.
 *
 *  CONFIG error:
 */


void foo() {
    void (^b)(void) = ^(void)printf("hello world\n");
}

int main(int argc, char *argv[]) {
    printf("%s: this shouldn't compile\n", argv[0]);
    return 1;
}