mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
8a357af3d8
This is needed for some improvements I'm going to make next. This commit also refactors error handling slightly to make it more easily testable, this should hopefully not result in any actual changes in behavior.
16 lines
339 B
Go
16 lines
339 B
Go
package main
|
|
|
|
// #error hello
|
|
// )))
|
|
import "C"
|
|
|
|
func main() {
|
|
}
|
|
|
|
// TODO: this error should be relative to the current directory (so cgo.go
|
|
// instead of testdata/errors/cgo.go).
|
|
|
|
// ERROR: # command-line-arguments
|
|
// ERROR: testdata/errors/cgo.go:3:5: error: hello
|
|
// ERROR: testdata/errors/cgo.go:4:4: error: expected identifier or '('
|