dmd/compiler/test/compilable/test22884.c
2022-07-09 18:53:07 +02:00

15 lines
284 B
C

// https://issues.dlang.org/show_bug.cgi?id=22884
int printf(const char*, ...);
typedef void (*funcptr)(void);
funcptr a = printf;
funcptr b = (void(*)())printf;
funcptr c = (funcptr)printf;
funcptr d = &printf;
funcptr foo(void)
{
funcptr f = (funcptr)printf;
return f;
}