• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  //
2  //                     The LLVM Compiler Infrastructure
3  //
4  // This file is distributed under the University of Illinois Open Source
5  // License. See LICENSE.TXT for details.
6  
7  /*
8   *  voidarg.c
9   *  testObjects
10   *
11   *  Created by Blaine Garst on 2/17/09.
12   *
13   */
14  
15  // PURPOSE should complain about missing 'void' but both GCC and clang are supporting K&R instead
16  // CONFIG open error:
17  
18  #include <stdio.h>
19  
20  int Global;
21  
22  void (^globalBlock)() = ^{ ++Global; };         // should be void (^gb)(void) = ...
23  
main(int argc,char * argv[])24  int main(int argc, char *argv[]) {
25      printf("%s: success", argv[0]);
26      return 0;
27  }
28