skia2/tests/sksl/errors/FloatRemainder.sksl
Brian Osman ff44584b47 SkSL: Disallow '%' and '%=' on non-integral types
Bug: skia:11072
Change-Id: Ic24e40bfea5bf1d2d14c0f681632228a5ecc7104
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342929
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
2020-12-10 22:19:49 +00:00

8 lines
113 B
Plaintext

// Expect 2 errors (one per function)
float x;
float y;
void rem() { x = x % y; }
void rem_eq() { x %= y; }