xref: /aosp_15_r20/external/skia/resources/sksl/inliner/InlineWithNestedCalls.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1half foo(half x) {
2    ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x;
3    --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x;
4    x = 42;
5    return x;
6}
7
8half bar(half y) {
9    y = foo(y);
10    return y;
11}
12
13void main() {
14    half _1_y = 123; // the inliner shouldn't try to reuse this name
15    half z = 0;
16    bar(z);
17    sk_FragColor.x = z;
18}
19