skia2/tests/sksl/shared/EmptyBlocks.glsl

14 lines
395 B
Plaintext
Raw Normal View History

vec4 main() {
vec4 color = vec4(0.0, 0.0, 0.0, 0.0);
for (int counter = 0;counter < 10; ++counter) ;
for (int counter = 0;counter < 10; ++counter) {
}
for (int counter = 0;counter < 10; ++counter) ;
if (sqrt(1.0) == 1.0) color.y = 1.0;
if (sqrt(1.0) == 2.0) ; else color.w = 1.0;
while (sqrt(1.0) == 2.0) ;
do ; while (sqrt(1.0) == 2.0);
return color;
}