vm_NotGo19_test.go 312 B

1234567891011121314151617
  1. // +build !go1.9
  2. package vm
  3. import (
  4. "fmt"
  5. "testing"
  6. )
  7. func TestMakeNotGo19(t *testing.T) {
  8. t.Parallel()
  9. tests := []Test{
  10. {Script: `make(struct { a int64 })`, RunError: fmt.Errorf("reflect.StructOf: field \"a\" is unexported but has no PkgPath")},
  11. }
  12. runTests(t, tests, nil, &Options{Debug: false})
  13. }