xref: /aosp_15_r20/external/skia/tests/sksl/runtime/SwitchWithFallthrough.minified.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen;uniform half4 colorRed;bool a(int b){bool c=false;switch(b){case 2:break;case 1:;case 0:c=true;break;default:break;}return c;}bool b(int c){bool d=false;switch(c){case 0:break;case 1:;case 2:;case 3:d=true;break;default:break;}return d;}half4 main(float2 c){int d=int(colorGreen.y);return a(d)&&b(d)?colorGreen:colorRed;}
2