skia2/tests/sksl/runtime_errors/LoopInitializerErrors.skvm
John Stiles e609598fe6 Reject array-typed vardecls and array ctors in strict ES2 mode.
This is enforced by ANGLE in Strict ES2 mode; we need to enforce it as
well.

Change-Id: I6e2f547ad8e0ce817742cf84659764cf6bce38b9
Bug: skia:11270
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/366339
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>
2021-02-04 19:36:50 +00:00

12 lines
412 B
Plaintext

### Compilation failed:
error: 3: missing init declaration
error: 4: invalid init declaration
error: 5: missing loop index initializer
error: 7: invalid type for loop index
error: 8: invalid type for loop index
error: 9: construction of array type 'int[2]' is not supported
error: 13: loop index initializer must be a constant expression
error: 14: loop index initializer must be a constant expression
8 errors