skia2/tests/sksl/shared/Ossfuzz28794.glsl
John Stiles 443fa19832 Implement compile-time optimization for sqrt(constant).
Change-Id: I3427fbaf57787c3051db95ec5882c9292d7985cf
Bug: skia:12034
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/411312
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-05-25 04:43:10 +00:00

8 lines
103 B
GLSL

out vec4 sk_FragColor;
void main() {
int i = 1;
i * (i = 3);
sk_FragColor.x = float(i);
}