2021-11-02 13:49:02 +00:00
|
|
|
### Compilation failed:
|
|
|
|
|
|
|
|
error: 20: integer is out of range for type 'short': 99999
|
2022-04-06 22:24:52 +00:00
|
|
|
cast_int_to_short(99999);
|
|
|
|
^^^^^
|
2021-11-02 13:49:02 +00:00
|
|
|
error: 21: integer is out of range for type 'short': 67890
|
2022-04-06 22:24:52 +00:00
|
|
|
cast_int2_to_short2(int2(12345, 67890));
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
2021-11-02 13:49:02 +00:00
|
|
|
error: 22: integer is out of range for type 'int': 5000000000
|
2022-04-06 22:24:52 +00:00
|
|
|
cast_float_to_int(5000000000.0);
|
|
|
|
^^^^^^^^^^^^
|
2021-11-02 13:49:02 +00:00
|
|
|
error: 23: integer is out of range for type 'int': 3000000000
|
2022-04-06 22:24:52 +00:00
|
|
|
cast_float3_to_int3(float3(3000000000, 2000000, 1000));
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-11-02 13:49:02 +00:00
|
|
|
error: 24: integer is out of range for type 'short': 32768
|
2022-04-06 22:24:52 +00:00
|
|
|
negate_short(-32768);
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
2021-11-02 13:49:02 +00:00
|
|
|
error: 25: integer is out of range for type 'int': 2147483648
|
2022-04-06 22:24:52 +00:00
|
|
|
negate_int4(int4(-2147483648));
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-11-02 13:49:02 +00:00
|
|
|
6 errors
|