brintos

brintos / llvm-project-archived public Read only

0
0
Text · 543 B · c4e764e Raw
23 lines · c
1//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-exception5 6 7// CONFIG  rdar://6339747 but wasn't8 9#include <stdio.h>10 11int (*funcptr)(long);12 13int (*(^b)(char))(long);14 15int main(int argc, char *argv[])  {16	// implicit is fine17	b = ^(char x) { return funcptr; };18	// explicit never parses19	b = ^int (*(char x))(long) { return funcptr; };20        printf("%s: Success\n", argv[0]);21        return 0;22}23