xref: /aosp_15_r20/external/skia/resources/sksl/errors/CommasWithArrays.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1struct S {
2    int array[2];
3};
4
5void fn() {
6    S myStruct;
7    int myArray[2];
8
9    myStruct, 123;
10    123, myStruct;
11    myArray, 123;
12    123, myArray;
13    myArray, myStruct;
14    myStruct, myArray;
15}
16
17/*%%*
18operator ',' can not operate on arrays (or structs containing arrays)
19operator ',' can not operate on arrays (or structs containing arrays)
20operator ',' can not operate on arrays (or structs containing arrays)
21operator ',' can not operate on arrays (or structs containing arrays)
22operator ',' can not operate on arrays (or structs containing arrays)
23operator ',' can not operate on arrays (or structs containing arrays)
24*%%*/
25