xref: /aosp_15_r20/external/skia/tests/sksl/errors/BadIndex.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 1: expected array, but found 'int'
4void int_not_array()      { int x = 2[0]; }
5                                    ^
6error: 2: expected array, but found 'float'
7void index_float2_twice() { float2 x = float2(0); int y = x[0][0]; }
8                                                          ^^^^
92 errors
10