//golangcitest:args -Estaticcheck //golangcitest:config_path testdata/staticcheck.yml package testdata /* #include #include void myprint(char* s) { printf("%d\n", s); } */ import "C" import ( "fmt" "unsafe" ) func _() { cs := C.CString("Hello from stdio\n") C.myprint(cs) C.free(unsafe.Pointer(cs)) } func _() { x := "dummy" fmt.Printf("%d", x) // want "SA5009: Printf format %d has arg #1 of wrong type" }