cb13c892af
SkSL errors now identify the specific range of code they are describing, rather than just the line number. Change-Id: Ifabb3148476f9b4cd8e532f23e5b38e1cf33a87e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528039 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
73 lines
2.3 KiB
GLSL
73 lines
2.3 KiB
GLSL
### Compilation failed:
|
|
|
|
error: 1: array size must be positive
|
|
void a1() { float[-2]; }
|
|
^^
|
|
error: 2: array size must be positive
|
|
void b1() { float[-1]; }
|
|
^^
|
|
error: 3: array size must be positive
|
|
void c1() { float[0]; }
|
|
^
|
|
error: 4: expected 'int', but found 'float'
|
|
void d1() { float[1.5]; }
|
|
^^^
|
|
error: 5: integer is out of range for type 'int': 4000000000
|
|
void e1() { float[4000000000]; }
|
|
^^^^^^^^^^
|
|
error: 5: array size must be positive
|
|
void e1() { float[4000000000]; }
|
|
^^^^^^^^^^
|
|
error: 6: expected 'int', but found 'bool'
|
|
void f1() { float[true]; }
|
|
^^^^
|
|
error: 7: expected 'int', but found 'bool'
|
|
void g1() { float[false]; }
|
|
^^^^^
|
|
error: 8: expected 'int', but found 'int2'
|
|
void h1() { float[int2(2, 2)]; }
|
|
^^^^^^^^^^
|
|
error: 9: missing index in '[]'
|
|
void i1() { float[]; }
|
|
^^
|
|
error: 10: integer is out of range for type 'int': 4000000000
|
|
void j1() { float[int3(4000000000)]; }
|
|
^^^^^^^^^^
|
|
error: 11: integer is out of range for type 'int': 100000002004087734272
|
|
void k1() { float[int(1e20)]; }
|
|
^^^^
|
|
error: 13: array size must be positive
|
|
void a2() { float x[-2]; }
|
|
^^
|
|
error: 14: array size must be positive
|
|
void b2() { float x[-1]; }
|
|
^^
|
|
error: 15: array size must be positive
|
|
void c2() { float x[0]; }
|
|
^
|
|
error: 16: array size must be an integer
|
|
void d2() { float x[1.5]; }
|
|
^^^
|
|
error: 17: array size out of bounds
|
|
void e2() { float x[4000000000]; }
|
|
^^^^^^^^^^
|
|
error: 18: array size must be an integer
|
|
void f2() { float x[true]; }
|
|
^^^^
|
|
error: 19: array size must be an integer
|
|
void g2() { float x[false]; }
|
|
^^^^^
|
|
error: 20: array size must be an integer
|
|
void h2() { float x[int2(2, 2)]; }
|
|
^^^^^^^^^^
|
|
error: 21: expected array dimension
|
|
void i2() { float x[]; }
|
|
^^
|
|
error: 22: integer is out of range for type 'int': 4000000000
|
|
void j2() { float x[int3(4000000000)]; }
|
|
^^^^^^^^^^
|
|
error: 23: integer is out of range for type 'int': 100000002004087734272
|
|
void k2() { float x[int(1e20)]; }
|
|
^^^^
|
|
23 errors
|