quakeforge/tools/qfcc/test/vecinit.r
Bill Currie 4828934e50 Fix a equality check typo.
Fixes bad code generation when assigning to vector.x in a function with no
parameters and the vector is the first local var.
2018-10-12 23:39:05 +09:00

29 lines
233 B
R

vector
foo (float x, float y, float z)
{
vector v;
v.x = x;
v.y = y;
v.z = z;
return v;
}
float w;
float h;
vector
bar (void)
{
vector pos;
pos.x = w;
pos.y = h;
pos.z = 0;
return pos;
}
int
main ()
{
return 0;
}