2021-06-01 15:07:53 +00:00
|
|
|
// Expect 10 errors
|
|
|
|
|
|
|
|
const int intMin = -2147483648;
|
|
|
|
const int intMinMinusOne = -2147483649; // error
|
|
|
|
const int intMax = 2147483647;
|
|
|
|
const int intMaxPlusOne = 2147483648; // error
|
2020-11-10 19:17:42 +00:00
|
|
|
|
|
|
|
void main() {
|
2021-06-01 15:07:53 +00:00
|
|
|
ushort4 us4 = ushort4(-1, // error
|
|
|
|
0,
|
|
|
|
65535,
|
|
|
|
65536); // error
|
|
|
|
|
|
|
|
short4 s4 = short4(-32768,
|
|
|
|
-32769, // error
|
|
|
|
32768, // error
|
|
|
|
32767);
|
|
|
|
|
|
|
|
int4 i4 = int4(intMin,
|
|
|
|
intMinMinusOne, // error
|
|
|
|
intMax,
|
|
|
|
intMaxPlusOne); // error
|
|
|
|
|
|
|
|
uint4 ui4 = uint4(intMin, // error
|
|
|
|
intMinMinusOne, // error
|
|
|
|
intMax,
|
|
|
|
intMaxPlusOne);
|
2020-11-10 19:17:42 +00:00
|
|
|
}
|