summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.go-torture/execute/for-1.go
blob: 7aa91f004269ee562abf894cabe9a11d9c36b7f3 (plain)
1
2
3
4
5
6
7
8
9
package main

func main() {
  sum := 0;
  for i := 0; i < 10; i++ {
    sum += i;
  }
  if sum != 45 { panic(0) }
}