xref: /aosp_15_r20/external/skia/tests/sksl/errors/OverflowInlinedLiteral.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker### Compilation failed:
2*c8dee2aaSAndroid Build Coastguard Worker
3*c8dee2aaSAndroid Build Coastguard Workererror: 20: value is out of range for type 'short': 99999
4*c8dee2aaSAndroid Build Coastguard Worker    cast_int_to_short(99999);
5*c8dee2aaSAndroid Build Coastguard Worker    ^^^^^^^^^^^^^^^^^^^^^^^^
6*c8dee2aaSAndroid Build Coastguard Workererror: 21: value is out of range for type 'short': 67890
7*c8dee2aaSAndroid Build Coastguard Worker    cast_int2_to_short2(int2(12345, 67890));
8*c8dee2aaSAndroid Build Coastguard Worker    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9*c8dee2aaSAndroid Build Coastguard Workererror: 22: value is out of range for type 'int': 5000000000
10*c8dee2aaSAndroid Build Coastguard Worker    cast_float_to_int(5000000000.0);
11*c8dee2aaSAndroid Build Coastguard Worker    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12*c8dee2aaSAndroid Build Coastguard Workererror: 23: value is out of range for type 'int': 3000000000
13*c8dee2aaSAndroid Build Coastguard Worker    cast_float3_to_int3(float3(3000000000, 2000000, 1000));
14*c8dee2aaSAndroid Build Coastguard Worker    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15*c8dee2aaSAndroid Build Coastguard Workererror: 24: value is out of range for type 'short': 32768
16*c8dee2aaSAndroid Build Coastguard Worker    negate_short(-32768);
17*c8dee2aaSAndroid Build Coastguard Worker    ^^^^^^^^^^^^^^^^^^^^
18*c8dee2aaSAndroid Build Coastguard Workererror: 25: value is out of range for type 'int': 2147483648
19*c8dee2aaSAndroid Build Coastguard Worker    negate_int4(int4(-2147483648));
20*c8dee2aaSAndroid Build Coastguard Worker    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21*c8dee2aaSAndroid Build Coastguard Worker6 errors
22