xref: /aosp_15_r20/external/skia/tests/sksl/errors/OverflowIntLiteral.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker### Compilation failed:
2*c8dee2aaSAndroid Build Coastguard Worker
3*c8dee2aaSAndroid Build Coastguard Workererror: 2: value is out of range for type 'int': -2147483649
4*c8dee2aaSAndroid Build Coastguard Workerconst int intMinMinusOne = -2147483649;                 // error
5*c8dee2aaSAndroid Build Coastguard Worker                           ^^^^^^^^^^^
6*c8dee2aaSAndroid Build Coastguard Workererror: 4: value is out of range for type 'int': 2147483648
7*c8dee2aaSAndroid Build Coastguard Workerconst int intMaxPlusOne  = 2147483648;                  // error
8*c8dee2aaSAndroid Build Coastguard Worker                           ^^^^^^^^^^
9*c8dee2aaSAndroid Build Coastguard Workererror: 5: value is out of range for type 'int': 2147483648
10*c8dee2aaSAndroid Build Coastguard Workerint   cast_int   = int(2147483648.);                    // error
11*c8dee2aaSAndroid Build Coastguard Worker                       ^^^^^^^^^^^
12*c8dee2aaSAndroid Build Coastguard Worker3 errors
13