mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +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;
|
|
}
|