| // Expect 6 errors |
| |
| uint uintMin = 0; |
| uint uintMinMinusOne = -1; // error |
| uint uintMax = 4294967295; |
| uint uintMaxPlusOne = 4294967296; // error |
| |
| ushort4 us4_neg = ushort4(2, 1, 0, -1); // error -1 |
| ushort4 us4_pos = ushort4(65536, 65535, 65534, 65533); // error 65536 |
| |
| uint cast_int = uint(4294967296.); // error |
| ushort cast_short = ushort(65536.); // error |
| |
| /*%%* |
| integer is out of range for type 'uint': -1 |
| integer is too large: 4294967296 |
| integer is out of range for type 'ushort': -1 |
| integer is out of range for type 'ushort': 65536 |
| integer is out of range for type 'uint': 4294967296 |
| integer is out of range for type 'ushort': 65536 |
| *%%*/ |