Update comments in FirstClassArrays test.

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>
This commit is contained in:
John Stiles 2022-01-06 12:01:45 -05:00 committed by SkCQ
parent 85a7045856
commit 3c233c7f73
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
// Expect 2 errors
// Expect 1 error
void array_decl() { float[123] x; }
// 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); }

View File

@ -1,4 +1,4 @@
### Compilation failed:
error: 5: construction of array type 'float[3]' is not supported
error: 8: construction of array type 'float[3]' is not supported
1 error