blob: 6c7df631f8db067d7c0649159a64c42066f23038 [file] [log] [blame]
Blaine Garst86d0ba42010-08-04 23:34:21 +00001//
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
12int (*funcptr)(long);
13
14int (*(^b)(char))(long);
15
16int 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}