1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5bool test_return_b() { 6 do { 7 return true; 8 } while (false); 9} 10bool test_break_b() { 11 do { 12 break; 13 } while (false); 14 return true; 15} 16bool test_continue_b() { 17 do { 18 continue; 19 } while (false); 20 return true; 21} 22bool test_if_return_b() { 23 do { 24 if (colorGreen.y > 0.0) { 25 return true; 26 } else { 27 break; 28 } 29 continue; 30 } while (false); 31 return false; 32} 33bool test_if_break_b() { 34 do { 35 if (colorGreen.y > 0.0) { 36 break; 37 } else { 38 continue; 39 } 40 } while (false); 41 return true; 42} 43bool test_else_b() { 44 do { 45 if (colorGreen.y == 0.0) { 46 return false; 47 } else { 48 return true; 49 } 50 } while (false); 51} 52bool test_loop_return_b() { 53 return true; 54} 55bool test_loop_break_b() { 56 for (int x = 0;x <= 1; ++x) { 57 break; 58 } 59 return true; 60} 61vec4 main() { 62 return ((((((test_return_b() && test_break_b()) && test_continue_b()) && test_if_return_b()) && test_if_break_b()) && test_else_b()) && test_loop_return_b()) && test_loop_break_b() ? colorGreen : colorRed; 63} 64