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

17 lines
335 B
C

// https://issues.dlang.org/show_bug.cgi?id=22904
int fn1() { return 0; }
void fn2() { long x = (long) (fn1) (); }
// https://issues.dlang.org/show_bug.cgi?id=22912
typedef long my_long;
void fn3() { long x = (my_long) (fn1) (); }
// https://issues.dlang.org/show_bug.cgi?id=22913
void fn4()
{
int a[1];
int b = (a[0]);
}