Files
tinygo/testdata/errors/compiler.go
Ayke van Laethem 04d1261f8a build: add package ID to compiler and optimization error messages
This improves error reporting slightly.
2024-07-21 18:23:49 +02:00

13 lines
275 B
Go

package main
//go:wasmimport foo bar
func foo() {
}
//go:align 7
var global int
// ERROR: # command-line-arguments
// ERROR: compiler.go:4:6: can only use //go:wasmimport on declarations
// ERROR: compiler.go:8:5: global variable alignment must be a positive power of two