skia2/tests/sksl/shared/golden/Ossfuzz28794.glsl
John Stiles a60ac0c45c Fix for fuzzer-discovered crash with swizzles.
We need to rescan after optimizing away expressions that might exist
in the CFG/definition map, since we are rebuilding them from scratch and
not just stripping off excess parts from them.

Change-Id: I843a2ea3fc38428e7c0bd0e2bf7a7d41101345e3
Bug: oss-fuzz:28794
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344972
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-22 14:38:52 +00:00

8 lines
123 B
GLSL

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