mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 17:01:22 +00:00
4caa875442
It turns out that initializing a local int with a pointer cast doesn't work.
17 lines
222 B
R
17 lines
222 B
R
int a;
|
|
double b;
|
|
int c;
|
|
double d;
|
|
void printf (string fmt, ...) = #0;
|
|
|
|
int main()
|
|
{
|
|
int di = (int) &d;
|
|
int fail = 0;
|
|
|
|
if (!di) {
|
|
printf ("address cast fail: %d\n", di);
|
|
fail |= 1;
|
|
}
|
|
return fail;
|
|
}
|