1// This is almost a clone of OutParamsFunctionCallInArgument; `out_param_func1` has a small 2// change which allows its body to be eliminated. 3 4uniform half4 colorGreen, colorRed; 5 6void out_param_func1(inout half v) { 7 v < colorGreen.g; 8} 9 10int out_param_func2(out half v) { 11 v = colorRed.r; 12 return int(v); 13} 14 15half4 main(float2 c) { 16 half testArray[2]; 17 out_param_func1(testArray[out_param_func2(testArray[0])]); 18 return (testArray[0] == 1 && testArray[1] == 1) ? colorGreen : colorRed; 19} 20