1// Expect 1 error 2 3// OK: SkSL allows ES3-style array declaration syntax. (This wouldn't work in native GLSL ES2.) 4float[123] global_var; 5void fn() { float[123] local_var; } 6 7// ERROR: SkSL (like GLSL ES2) does not allow array constructors in strict-ES2 mode. 8void array_ctor() { float[3](1, 2, 3); } 9 10/*%%* 11construction of array type 'float[3]' is not supported 12*%%*/ 13