We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f8cf46 commit 8e7ec80Copy full SHA for 8e7ec80
ir_test.go
@@ -13,6 +13,7 @@
13
package llvm
14
15
import (
16
+ "strconv"
17
"strings"
18
"testing"
19
)
@@ -89,6 +90,15 @@ func TestAttributes(t *testing.T) {
89
90
}
91
92
for _, name := range attrTests {
93
+ majorVersion, err := strconv.Atoi(strings.SplitN(Version, ".", 2)[0])
94
+ if err != nil {
95
+ // sanity check, should be unreachable
96
+ t.Errorf("could not parse LLVM version: %v", err)
97
+ }
98
+ if majorVersion >= 15 && name == "uwtable" {
99
+ // This changed from an EnumAttr to an IntAttr in LLVM 15, and testAttribute doesn't work on such attributes.
100
+ continue
101
102
testAttribute(t, name)
103
104
0 commit comments