1# test builtin hash function
2
3print({1 << 66:1}) # hash big int
4print({-(1 << 66):2}) # hash negative big int
5
6# __hash__ returning a large number should be truncated
7class F:
8    def __hash__(self):
9        return 1 << 70 | 1
10print(hash(F()) != 0)
11
12# this had a particular error with internal integer arithmetic of hash function
13print(hash(6699999999999999999999999999999999999999999999999999999999999999999999) != 0)
14