quakeforge/tools/qfcc/test/address-cast.r
Bill Currie 4caa875442 Finish up alignment tests and add address cast
It turns out that initializing a local int with a pointer cast doesn't
work.
2020-02-15 23:49:12 +09:00

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;
}