Debian Codegraph @

staticcheck/sa4000/testdata/go1.0/CheckLhsRhsIdentical/cgo.go

raw
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 }