quakeforge/tools/qfcc/test/vecexpr.r
2018-10-15 19:48:19 +09:00

23 lines
180 B
R

vector
t1()
{
return [1, 2, 3];
}
vector
t2(float x)
{
return [x, x, x];
}
vector
t3(float x)
{
return [x, t2(9).z, x];
}
int
main ()
{
return t3(5) == [5, 9, 5] ? 0 : 1;
}