quakeforge/tools/qfcc/test/structlive.r
Bill Currie 3665a0566a Add a test for struct writes.
This tests local kills via aliases.
2012-12-13 13:44:25 +09:00

20 lines
213 B
R

@param foo (int r)
{
@param ret;
ret = nil;
ret.int_val = r;
return ret;
}
int main ()
{
@param ret;
int i;
for (i = 0; i < 5; i++) {
ret = foo (i);
if (ret.int_val != i)
return 1;
}
return 0;
}