xref: /aosp_15_r20/external/skia/tests/sksl/errors/ArrayUnspecifiedDimensions.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1### Compilation failed:
2
3error: 1: unsized arrays are not permitted here
4int arrUnsized[];
5^^^^^^^^^^^^^^^^
6error: 2: array size must be an integer
7int arrFloat[1.];
8             ^^
9error: 3: array size must be an integer
10int arrBool[true];
11            ^^^^
12error: 6: unsized arrays are not permitted here
13    int inStructVariable[];
14                         ^
15error: 8: unsized arrays are not permitted here
16S arrOfStruct[];
17^^^^^^^^^^^^^^^
18error: 10: missing index in '[]'
19int unsized_in_expression_a() { return int[](0)[0]; }
20                                          ^^
21error: 11: missing index in '[]'
22S   unsized_in_expression_b() { return S(int[](0)); }
23                                            ^^
24error: 14: unsized arrays are not permitted here
25    int[] inStructType;
26    ^^^^^^^^^^^^^^^^^^
27error: 24: functions may not return type 'int[]'
28int[] unsized_in_return_type_a() {}
29^^^
30error: 25: functions may not return type 'S[]'
31S[]   unsized_in_return_type_b() {}
32^
3310 errors
34