xref: /aosp_15_r20/external/skia/resources/sksl/inliner/CommaExpressionsAllowInlining.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen;
2
3void d(inout int) {}
4
5void c(out int i) {
6    // This expression is void-typed, because comma expressions take their type from the RHS.
7    12345, d(i);
8}
9
10void a(int i) {
11    c(i);
12}
13
14half4 main(float2) {
15    int i;
16    a(i);
17    return colorGreen;
18}
19