blob: 9965a26df2beb6848a9505eeaa0f31e9a6eda298 [file] [log] [blame]
// 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
/*%%*
value is out of range for type 'uint': -1
integer is too large: 4294967296
value is out of range for type 'ushort': -1
value is out of range for type 'ushort': 65536
value is out of range for type 'uint': 4294967296
value is out of range for type 'ushort': 65536
*%%*/