1#unittest { 2 name: "Test neg optimization."; 3 error: NONE; 4 result: 2; 5}; 6 7func main() { 8 var a = -1; 9 var b = 3; 10 return a + b; 11} 12