summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.go-torture/execute/expr-1.go
blob: 076388a6e4c012a408fead399473a9fd216a7229 (plain)
1
2
3
4
5
6
7
8
9
10
11
package main

func main() {
  var v1 = 1;
  var v2 = 1;
  var v3 = (v1 + v2) / (v1 + v2);
  var v4 = (v3 * v3) % (v3 * v3);
  if v4 != 0 {
    panic(0)
  }
}