skia2/tests/sksl/runtime_errors/IllegalShaderUse.skvm
John Stiles 32385b7070 Report incomplete expression-statements as errors.
Previously, a dangling type or function reference would be eliminated
silently with optimizations on, or would assert when optimizations were
off.

Change-Id: Ib2e273b6f069724e8872c9cb97351b647b875a62
Bug: skia:12472
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/469525
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-11-09 22:10:18 +00:00

16 lines
641 B
Plaintext

### Compilation failed:
error: 10: variables of type 'shader' must be uniform
error: 11: 'in' variables not permitted in runtime effects
error: 11: variables of type 'shader' must be uniform
error: 14: variables of type 'shader' must be global
error: 14: variables of type 'shader' must be uniform
error: 15: parameters of type 'shader' not allowed
error: 15: unknown identifier 's'
error: 16: functions may not return opaque type 'shader'
error: 17: cannot construct 'shader'
error: 18: ternary expression of opaque type 'shader' not allowed
error: 19: expected '(' to begin method call
error: 19: expected a type, but found '}'
12 errors