[Sanitizer] Add rudimentary support for wide-character strings to scanf/printf interc...
[blocksruntime.git] / test / BlocksRuntime / returnfunctionptr.c
blob6c7df631f8db067d7c0649159a64c42066f23038
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.
8 // CONFIG rdar://6339747 but wasn't
10 #include <stdio.h>
12 int (*funcptr)(long);
14 int (*(^b)(char))(long);
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;