xref: /aosp_15_r20/external/skia/tests/sksl/errors/OverflowUintLiteral.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker### Compilation failed:
2*c8dee2aaSAndroid Build Coastguard Worker
3*c8dee2aaSAndroid Build Coastguard Workererror: 4: value is out of range for type 'uint': -1
4*c8dee2aaSAndroid Build Coastguard Workeruint uintMinMinusOne = -1;                             // error
5*c8dee2aaSAndroid Build Coastguard Worker                       ^^
6*c8dee2aaSAndroid Build Coastguard Workererror: 6: integer is too large: 4294967296
7*c8dee2aaSAndroid Build Coastguard Workeruint uintMaxPlusOne  = 4294967296;                     // error
8*c8dee2aaSAndroid Build Coastguard Worker                       ^^^^^^^^^^
9*c8dee2aaSAndroid Build Coastguard Workererror: 8: value is out of range for type 'ushort': -1
10*c8dee2aaSAndroid Build Coastguard Workerushort4 us4_neg = ushort4(2, 1, 0, -1);                // error -1
11*c8dee2aaSAndroid Build Coastguard Worker                                   ^^
12*c8dee2aaSAndroid Build Coastguard Workererror: 9: value is out of range for type 'ushort': 65536
13*c8dee2aaSAndroid Build Coastguard Workerushort4 us4_pos = ushort4(65536, 65535, 65534, 65533); // error 65536
14*c8dee2aaSAndroid Build Coastguard Worker                          ^^^^^
15*c8dee2aaSAndroid Build Coastguard Workererror: 11: value is out of range for type 'uint': 4294967296
16*c8dee2aaSAndroid Build Coastguard Workeruint   cast_int   = uint(4294967296.);                 // error
17*c8dee2aaSAndroid Build Coastguard Worker                         ^^^^^^^^^^^
18*c8dee2aaSAndroid Build Coastguard Workererror: 12: value is out of range for type 'ushort': 65536
19*c8dee2aaSAndroid Build Coastguard Workerushort cast_short = ushort(65536.);                    // error
20*c8dee2aaSAndroid Build Coastguard Worker                           ^^^^^^
21*c8dee2aaSAndroid Build Coastguard Worker6 errors
22