mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
e409950492
Match the error messages in testdata/errors/*.go like LLVM FileCheck, which includes regular expressions. I believe this is much more flexible, and LLVM uses it in nearly all of their tests so it must work quite well for compilers.
9 lines
182 B
Go
9 lines
182 B
Go
package main
|
|
|
|
import _ "github.com/tinygo-org/tinygo/testdata/errors/invaliddep"
|
|
|
|
func main() {
|
|
}
|
|
|
|
// ERROR: invaliddep{{[\\/]}}invaliddep.go:1:1: expected 'package', found ppackage
|