github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/staticcheck/sa4000/testdata/src/example.com/CheckLhsRhsIdentical/cgo.go (about) 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 }