File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
cmd/compile/internal/types2 Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
11
11
"fmt"
12
12
"internal/testenv"
13
13
"regexp"
14
- "runtime"
15
14
"sort"
16
15
"strings"
17
16
"testing"
@@ -807,11 +806,8 @@ func (S) M5(struct {S;t}) {}
807
806
}
808
807
809
808
func TestIssue59944 (t * testing.T ) {
810
- if runtime .GOARCH == "wasm" {
811
- // While we don't use the cgo tool directly in this test, we must have the
812
- // syscall package.
813
- t .Skip ("cgo generated code does not compile on wasm" )
814
- }
809
+ testenv .MustHaveCGO (t )
810
+
815
811
// The typechecker should resolve methods declared on aliases of cgo types.
816
812
const src = `
817
813
package p
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
13
13
"go/token"
14
14
"internal/testenv"
15
15
"regexp"
16
- "runtime"
17
16
"sort"
18
17
"strings"
19
18
"testing"
@@ -846,11 +845,8 @@ func (S) M5(struct {S;t}) {}
846
845
}
847
846
848
847
func TestIssue59944 (t * testing.T ) {
849
- if runtime .GOARCH == "wasm" {
850
- // While we don't use the cgo tool directly in this test, we must have the
851
- // syscall package.
852
- t .Skip ("cgo generated code does not compile on wasm" )
853
- }
848
+ testenv .MustHaveCGO (t )
849
+
854
850
// The typechecker should resolve methods declared on aliases of cgo types.
855
851
const src = `
856
852
package p
You can’t perform that action at this time.
0 commit comments