Skip to content

Instantly share code, notes, and snippets.

@wackbyte
Created May 7, 2020 02:45
Show Gist options
  • Save wackbyte/b208d4682ebcda35483658e47be853f7 to your computer and use it in GitHub Desktop.
Save wackbyte/b208d4682ebcda35483658e47be853f7 to your computer and use it in GitHub Desktop.
diff --git a/bindings/go/llvm/ir_test.go b/bindings/go/llvm/ir_test.go
index 10f4968..92cab1f 100644
--- a/bindings/go/llvm/ir_test.go
+++ b/bindings/go/llvm/ir_test.go
@@ -31,7 +31,7 @@ func testAttribute(t *testing.T, name string) {
fn.AddFunctionAttr(attr)
newattr := fn.GetEnumFunctionAttribute(kind)
if attr != newattr {
- t.Errorf("got attribute mask %d, want %d", newattr, attr)
+ t.Errorf("got attribute mask %p, want %p", newattr.C, attr.C)
}
text := mod.String()
@@ -42,7 +42,7 @@ func testAttribute(t *testing.T, name string) {
fn.RemoveEnumFunctionAttribute(kind)
newattr = fn.GetEnumFunctionAttribute(kind)
if !newattr.IsNil() {
- t.Errorf("got attribute mask %d, want 0", newattr)
+ t.Errorf("got attribute mask %p, want 0", newattr.C)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment