113
113
func TestCDecl(t *testing.T) {
115
116
a, _, _ := GetDLL(t, "user32.dll").Proc("wsprintfA").Call(
116
117
uintptr(unsafe.Pointer(&buf[0])),
119
120
if string(buf[:a]) != "1000 2000 3000" {
120
121
t.Error("cdecl USER32.wsprintfA returns", a, "buf=", buf[:a])