1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00
revive/testdata/call-to-gc.go

18 lines
210 B
Go
Raw Normal View History

2018-10-31 16:32:23 +02:00
package fixtures
import (
"fmt"
"runtime"
)
func GC() {
}
func foo() {
fmt.Println("just testing")
GC()
fixtures.GC()
runtime.Goexit()
runtime.GC() // MATCH /explicit call to the garbage collector/
}