blob: e31601d69f27ecd6026b645507e21623d975ed86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
namespace;
include rt;
// a word is 64 bits: shifts past 31, and equality uses bit 63
fn main() {
rt.put_n(1 << 40); rt.put_c(' ');
rt.put_n((1 << 40) >> 40); rt.put_c(' ');
rt.put_n((1 << 40) == (1 << 40)); rt.put_c(' ');
rt.put_n((1 << 40) != 0); rt.put_c(' ');
rt.put_n(~0 >> 63); rt.put_c(10);
return 0;
}
|