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

17 lines
317 B
C

// https://issues.dlang.org/show_bug.cgi?id=22897
int printf(const char*, ...);
void exit(int);
static int bob(void) { return 1; }
static int other(void);
int main()
{
int (*fn)(void) = other;
//printf("%d\n", fn());
if (fn() != 2)
exit(1);
return 0;
}
static int other(void) { return 2; }