|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
diff --git a/ir_test.go b/ir_test.go
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
index 10f4968..afcc8fd 100644
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
--- a/ir_test.go
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
+++ b/ir_test.go
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
@@ -31,7 +31,7 @@ func testAttribute(t *testing.T, name string) {
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
fn.AddFunctionAttr(attr)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
newattr := fn.GetEnumFunctionAttribute(kind)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
if attr != newattr {
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
- t.Errorf("got attribute mask %d, want %d", newattr, attr)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
+ t.Errorf("got attribute mask %d, want %d", newattr.C, attr.C)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
}
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
text := mod.String()
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
@@ -42,7 +42,7 @@ func testAttribute(t *testing.T, name string) {
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
fn.RemoveEnumFunctionAttribute(kind)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
newattr = fn.GetEnumFunctionAttribute(kind)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
if !newattr.IsNil() {
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
- t.Errorf("got attribute mask %d, want 0", newattr)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
+ t.Errorf("got attribute mask %d, want 0", newattr.C)
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
}
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
}
|
|
![](https://seccdn.libravatar.org/avatar/0b0f63847357759267a3623f6904da34d6c98fb16d6f26d5b1a6ac8c2e5c6b3a?s=16&d=retro) |
5e2d467 |
|