Files
tinygo/testdata/errors/compiler.go
T
Ayke van Laethem f4ce11ef37 main: add error tests for the compiler
The compiler can in fact return errors, but these weren't tested yet.
2024-07-20 14:30:34 +02:00

14 lines
292 B
Go

package main
//go:wasmimport foo bar
func foo() {
}
//go:align 7
var global int
// TODO: include package name in the error message
// 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