summarylogtreecommitdiffstats
path: root/0005-Fix-go-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to '0005-Fix-go-tests.patch')
-rw-r--r--0005-Fix-go-tests.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/0005-Fix-go-tests.patch b/0005-Fix-go-tests.patch
new file mode 100644
index 000000000000..bcdd5abe7a8f
--- /dev/null
+++ b/0005-Fix-go-tests.patch
@@ -0,0 +1,21 @@
+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)
+ }
+ }