xref: /aosp_15_r20/external/skia/tests/sksl/errors/InvalidUnary.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 3: '++' cannot operate on 'float[1]'
4void preincrement_array()   { float    x[1]; ++x; }
5                                             ^^^
6error: 4: '--' cannot operate on 'int3[2]'
7void predecrement_array()   { int3     x[2]; --x; }
8                                             ^^^
9error: 5: '++' cannot operate on 'float4x4[3]'
10void postincrement_array()  { float4x4 x[3]; x++; }
11                                             ^^^
12error: 6: '--' cannot operate on 'bool'
13void postdecrement_bool()   { bool     x = true; x--; }
14                                                 ^^^
15error: 7: '!' cannot operate on 'int'
16void not_integer()          { int x = !12; }
17                                      ^^^
18error: 8: '+' cannot operate on 'Foo'
19void positive_struct()      { Foo x = +bar; }
20                                      ^^^^
21error: 9: '-' cannot operate on 'Foo'
22void negative_struct()      { Foo x = -bar; }
23                                      ^^^^
247 errors
25