1/*
2 * Copyright (c) 2010 Apple Inc. All rights reserved.
3 *
4 * @APPLE_LLVM_LICENSE_HEADER@
5 */
6
7/*
8 *  orbars.c
9 *  testObjects
10 *
11 *  Created by Blaine Garst on 9/17/08.
12 *  Copyright 2008 __MyCompanyName__. All rights reserved.
13 */
14
15// rdar://6276695 error: before ‘|’ token
16// TEST_CONFIG RUN=0
17
18/*
19TEST_BUILD_OUTPUT
20.*orbars.c: In function '.*__main_block_invoke_1.*':
21.*orbars.c:32: error: expected (primary-)?expression before '\|' token
22OR
23.*orbars.c:32:(41|60): error: expected expression
24END
25*/
26
27#include <stdio.h>
28#include "test.h"
29
30int main() {
31    int i __unused = 10;
32    void (^b)(void) __unused = ^(void){ | i | printf("hello world, %d\n", i); };
33    fail("should not compile");
34}
35