Blaine Garst | 86d0ba4 | 2010-08-04 23:34:21 +0000 | [diff] [blame] | 1 | // |
Chandler Carruth | 58d4360 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
Blaine Garst | 86d0ba4 | 2010-08-04 23:34:21 +0000 | [diff] [blame] | 5 | |
| 6 | /* |
| 7 | * voidarg.c |
| 8 | * testObjects |
| 9 | * |
| 10 | * Created by Blaine Garst on 2/17/09. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | // PURPOSE should complain about missing 'void' but both GCC and clang are supporting K&R instead |
| 15 | // CONFIG open error: |
| 16 | |
| 17 | #include <stdio.h> |
| 18 | |
| 19 | int Global; |
| 20 | |
| 21 | void (^globalBlock)() = ^{ ++Global; }; // should be void (^gb)(void) = ... |
| 22 | |
| 23 | int main(int argc, char *argv[]) { |
| 24 | printf("%s: success", argv[0]); |
| 25 | return 0; |
| 26 | } |