]> Cypherpunks.ru repositories - gostls13.git/blobdiff - misc/cgo/test/test.go
misc/cgo/test: fix vet error
[gostls13.git] / misc / cgo / test / test.go
index 9d9b14ee74ec34f3cba077095d3c44000daea7cb..1529ca59280994c608e3cbf1cdd7cb3992e1289d 100644 (file)
@@ -2116,7 +2116,7 @@ func test27660(t *testing.T) {
 // issue 28540
 
 func twoargsF() {
-       v := []string{}
+       var v struct{ p *byte }
        C.twoargs1(C.twoargs2(), C.twoargs3(unsafe.Pointer(&v)))
 }