mirror of https://github.com/tinygo-org/tinygo.git
Ayke van Laethem
4 months ago
committed by
Ron Evans
2 changed files with 14 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||
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
|
Loading…
Reference in new issue