mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
21 lines
324 B
R
21 lines
324 B
R
int a;
|
|
double b;
|
|
int c = (int) &b;
|
|
double d;
|
|
void printf (string fmt, ...) = #0;
|
|
|
|
int main()
|
|
{
|
|
int di = (int) &d;
|
|
int fail = 0;
|
|
|
|
if (!c) {
|
|
printf ("global init address cast fail: %d\n", c);
|
|
fail |= 1;
|
|
}
|
|
if (!di) {
|
|
printf ("local init address cast fail: %d\n", di);
|
|
fail |= 1;
|
|
}
|
|
return fail;
|
|
}
|