quakeforge/tools/qfcc/test/vecexpr.r

24 lines
180 B
R
Raw Normal View History

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 ()
{
2018-10-15 10:48:19 +00:00
return t3(5) == [5, 9, 5] ? 0 : 1;
}