mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 15:41:59 +00:00
21 lines
223 B
R
21 lines
223 B
R
|
vector
|
||
|
bar (float *v)
|
||
|
{
|
||
|
return [v[0], v[1], v[2]];
|
||
|
}
|
||
|
|
||
|
vector
|
||
|
foo (float x, float y, float z)
|
||
|
{
|
||
|
float v[3] = { x, y, z };
|
||
|
return bar (&v[0]);
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main ()
|
||
|
{
|
||
|
int ret = 0;
|
||
|
ret |= foo(1,2,3) != [1, 2, 3];
|
||
|
return ret;
|
||
|
}
|