xref: /aosp_15_r20/external/skia/resources/sksl/shared/Ossfuzz63170.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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