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