Skip to content

Commit 8fb3457

Browse files
committed
compiler/testdata: add structs.HostLayout
1 parent 62a85ef commit 8fb3457

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/testdata/errors.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package main
22

3-
import "unsafe"
3+
import (
4+
"structs"
5+
"unsafe"
6+
)
47

58
//go:wasmimport modulename empty
69
func empty()
@@ -14,6 +17,7 @@ func implementation() {
1417
type Uint uint32
1518

1619
type S struct {
20+
_ structs.HostLayout
1721
a [4]uint32
1822
b uintptr
1923
d float32

0 commit comments

Comments
 (0)