This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
skia2
Watch
1
Star
0
Fork
0
You've already forked skia2
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
8c1fe9f743
skia2
/
resources
/
sksl
/
errors
/
InVarWithInitializerExpression.sksl
6 lines
79 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add unit test for fuzzer-detected error with in vars. `in` vars shouldn't support initializer expressions at all. The fuzzer noticed that dead-stripping interacts poorly with `in` var initializer expressions, which makes sense because it's an unsupported and untested path. In a followup CL, lines 1 and 3 will both become errors. Change-Id: Ibb64ca319a046b040eea976acb6798a1402451de Bug: oss-fuzz:27300 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333128 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
2020-11-09 15:50:35 +00:00
in float x = 1;
Add expected errors to every test file. This was (crudely) automated with shell scripts: http://go/paste/5484300603490304 Change-Id: Ic9e1c93112772d303d1158eb26d995f27b439eba Bug: skia:12665 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505637 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2022-02-08 17:19:26 +00:00
/*%%*
'in' variables cannot use initializer expressions
*%%*/
Reference in New Issue
Copy Permalink