Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / CheckLoopCondition / CheckLoopCondition.go
1 package pkg
2
3 func fn() {
4         for i := 0; i < 10; i++ {
5                 for j := 0; j < 10; i++ { // want `variable in loop condition never changes`
6                 }
7         }
8
9         counter := 0
10         for i := 0; i < 10; i++ {
11                 for j := 0; j < 10; counter++ {
12                         x := &j
13                         *x++
14                 }
15         }
16 }