quakeforge/tools/qfcc/test/func-expr.r
Bill Currie 70d18ecfa1 Add a test for functions in binary expressions.
As expected, the binary_expr() cleanup broke multiple function calls in a
single expression.
2013-09-27 23:15:57 +09:00

18 lines
157 B
R

int foo (int i)
{
return i;
}
int func (int a, int b)
{
local int x;
x = foo (a) + foo (b);
return x;
};
int
main ()
{
return func (1,3) != 1 + 3;
}