Created
May 7, 2020 02:45
-
-
Save wackbyte/b208d4682ebcda35483658e47be853f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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