skia2/resources/sksl/errors/FloatRemainder.rts
John Stiles 2fdcca2777 Rename ES2 error tests from 'C' through 'G' to .rts.
A few tests received minor tweaks to make them Runtime Effect-friendly.

Change-Id: I9b4f66b0974c41d38324dfbb31ac9849338f600a
Bug: skia:13042
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/523186
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-03-21 22:50:58 +00:00

13 lines
235 B
Plaintext

// Expect 2 errors (one per function)
float x;
float y;
void rem() { x = x % y; }
void rem_eq() { x %= y; }
/*%%*
type mismatch: '%' cannot operate on 'float', 'float'
type mismatch: '%=' cannot operate on 'float', 'float'
*%%*/