aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/unary_minus_wraps.zc
blob: aba1c478b0f31860dd914fe0c3b4de581a61431a (plain) (blame)
1
2
3
4
5
6
7
8
9
// expect: -9223372036854775808/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int a = 0x7fffffffffffffff;
	a = a + 1;
	pn(-a);
	return 0;
}