mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
57b2751732
It's an evil thing to do, but it should at least work.
16 lines
268 B
R
16 lines
268 B
R
void printf (string fmt, ...) = #0;
|
|
|
|
float foo (vector v, float z)
|
|
{
|
|
return v * *(vector*)(&v.y);
|
|
}
|
|
|
|
int
|
|
main (int argc, string *argv)
|
|
{
|
|
vector v = [1, 2, 3];
|
|
vector w = [2, 3, 4];
|
|
float f;
|
|
printf ("%v %g %g %g\n", v, v*v, v*w, f=foo (v, 4));
|
|
return f != v*w;
|
|
}
|