]> Cypherpunks.ru repositories - gostls13.git/blob - test/prove_invert_loop_with_unused_iterators.go
cmd/compile/internal/noder: remove inlined closure naming hack
[gostls13.git] / test / prove_invert_loop_with_unused_iterators.go
1 // +build amd64
2 // errorcheck -0 -d=ssa/prove/debug=1
3
4 package main
5
6 func invert(b func(), n int) {
7         for i := 0; i < n; i++ { // ERROR "(Inverted loop iteration|Induction variable: limits \[0,\?\), increment 1)"
8                 b()
9         }
10 }