blob: 97a129df615fcfbb32fca1bf2454ba7d80af0368 [file] [log] [blame]
// 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); }
/*%%*
construction of array type 'float[3]' is not supported
*%%*/