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 a5f78a3 commit f4ce11eCopy full SHA for f4ce11e
errors_test.go
@@ -17,6 +17,7 @@ import (
17
func TestErrors(t *testing.T) {
18
for _, name := range []string{
19
"cgo",
20
+ "compiler",
21
"interp",
22
"loader-importcycle",
23
"loader-invaliddep",
testdata/errors/compiler.go
@@ -0,0 +1,13 @@
1
+package main
2
+
3
+//go:wasmimport foo bar
4
+func foo() {
5
+}
6
7
+//go:align 7
8
+var global int
9
10
+// TODO: include package name in the error message
11
12
+// ERROR: compiler.go:4:6: can only use //go:wasmimport on declarations
13
+// ERROR: compiler.go:8:5: global variable alignment must be a positive power of two
0 commit comments