• Home
  • 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 // CONFIG  rdar://6339747 but wasn't
9 
10 #include <stdio.h>
11 
12 int (*funcptr)(long);
13 
14 int (*(^b)(char))(long);
15 
main(int argc,char * argv[])16 int main(int argc, char *argv[])  {
17 	// implicit is fine
18 	b = ^(char x) { return funcptr; };
19 	// explicit never parses
20 	b = ^int (*(char x))(long) { return funcptr; };
21         printf("%s: Success\n", argv[0]);
22         return 0;
23 }
24