3c233c7f73
We used to reject ES3-style array declarations in strict-ES2 mode, so this test originally expected two errors. Change-Id: I17f71630076cda4b37b7723225dcff951eba9dcc Bug: skia:12410 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/491997 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
10 lines
302 B
Plaintext
10 lines
302 B
Plaintext
// Expect 1 error
|
|
|
|
// OK: SkSL allows ES3-style array declaration syntax. (This wouldn't work in native GLSL ES2.)
|
|
float[123] global_var;
|
|
void fn() { float[123] local_var; }
|
|
|
|
// ERROR: SkSL (like GLSL ES2) does not allow array constructors in strict-ES2 mode.
|
|
void array_ctor() { float[3](1, 2, 3); }
|
|
|