skia2/tests/sksl/errors/UnknownDivideByZero.glsl
Ethan Nicholas c0f9815609 Added detection for non-constant-folded divide by zero errors in
SkSL.

It would previously catch 1 / 0, but fail to detect x / 0.

Bug: skia:11051
Change-Id: I3adb5942cce03a7ad40a13a8ca5d5a7f2029d6ad
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/366720
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
2021-02-06 03:13:16 +00:00

20 lines
478 B
GLSL

### Compilation failed:
error: 5: division by zero
error: 6: division by zero
error: 7: division by zero
error: 8: division by zero
error: 9: division by zero
error: 10: division by zero
error: 11: division by zero
error: 13: division by zero
error: 14: division by zero
error: 15: division by zero
error: 16: division by zero
error: 17: division by zero
error: 18: division by zero
error: 19: division by zero
error: 20: division by zero
error: 21: division by zero
16 errors