You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
385 B
31 lines
385 B
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os/exec"
|
|
)
|
|
|
|
func reassignments() {
|
|
var x int
|
|
// START OMIT
|
|
for {
|
|
|
|
}
|
|
for x != 0 {
|
|
|
|
}
|
|
for i, elem := range []int{1, 2, 3} {
|
|
fmt.Println(i, elem)
|
|
}
|
|
for x := 0; x < 10; x++ {
|
|
|
|
}
|
|
// END OMIT
|
|
}
|
|
func main() {
|
|
cmd := exec.Command("/go/bin/funcheck", "./code/reassignments/for")
|
|
out, err := cmd.CombinedOutput()
|
|
fmt.Printf("%s\n%s", out, err)
|
|
|
|
}
|