☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa4000
/
testdata
/
go1.0
/
CheckLhsRhsIdentical
/
cgo.go
☽
☼
staticcheck/sa4000/testdata/go1.0/CheckLhsRhsIdentical/cgo.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
// void foo(void **p) {}
4
import "C"
5
import "unsafe"
6
7
func Foo() {
8
var p unsafe.Pointer
9
10
C.foo(&p)
11
if 0 == 0 {
12
// We don't currently flag this instance of 0 == 0 because of
13
// our cgo-specific exception.
14
println()
15
}
16
}