xref: /aosp_15_r20/external/skia/resources/sksl/errors/OverflowIntLiteral.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Workerconst int intMin         = -2147483648;
2*c8dee2aaSAndroid Build Coastguard Workerconst int intMinMinusOne = -2147483649;                 // error
3*c8dee2aaSAndroid Build Coastguard Workerconst int intMax         = 2147483647;
4*c8dee2aaSAndroid Build Coastguard Workerconst int intMaxPlusOne  = 2147483648;                  // error
5*c8dee2aaSAndroid Build Coastguard Workerint   cast_int   = int(2147483648.);                    // error
6*c8dee2aaSAndroid Build Coastguard Worker
7*c8dee2aaSAndroid Build Coastguard Worker/*%%*
8*c8dee2aaSAndroid Build Coastguard Workervalue is out of range for type 'int': -2147483649
9*c8dee2aaSAndroid Build Coastguard Workervalue is out of range for type 'int': 2147483648
10*c8dee2aaSAndroid Build Coastguard Workervalue is out of range for type 'int': 2147483648
11*c8dee2aaSAndroid Build Coastguard Worker*%%*/
12