tools/go/ssa/interp
Alan Donovan 8463610142 go/ssa/interp: enable support for Example tests
1. Added intrinsic for os.Pipe to avoid use of "unsafe".  This makes
   Example tests work in the interpreter, fixing the broken "unicode"
   package (which recently sprouted some Examples) and allowing us to
   enable tests for:

      encoding/csv
      flag
      path
      text/scanner
      unicode/utf8

   The implementation of os.Pipe may require tweaking for non-Linux platforms.

2. Added intrinsic for strings.Index to avoid assembly dependency.

3. Added dumb intrinsic for testing۰runExample to work around a bug in
   go/ssa/testmain.go that requires an invasive fix
   (Until then, the output of Example functions will not be checked.)

Change-Id: I6374c9c47aa802275b7cdc98525e057f5db0615a
Reviewed-on: https://go-review.googlesource.com/18191
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-12-28 21:19:28 +00:00
..
testdata go/ssa: fix crash when building map[*struct{}]bool{{}: true} 2015-11-23 19:08:17 +00:00
external.go go/ssa/interp: enable support for Example tests 2015-12-28 21:19:28 +00:00
external_darwin.go go/ssa/interp: add syscall.Sysctl to Darwin. 2014-03-04 13:34:45 -05:00
external_freebsd.go go.tools/go/ssa/interp: add wrappers for Sysctl{,Uint32} intrinsics on FreeBSD 2014-04-18 15:58:12 -04:00
external_plan9.go go.tools/ssa/interp: add intrinsics for (*sync.Pool).{Get,Put}. 2014-01-27 13:11:16 -05:00
external_unix.go go.tools/ssa/interp: add intrinsics for (*sync.Pool).{Get,Put}. 2014-01-27 13:11:16 -05:00
external_windows.go go.tools/ssa/interp: add intrinsics for (*sync.Pool).{Get,Put}. 2014-01-27 13:11:16 -05:00
interp.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
interp_test.go go/ssa/interp: enable support for Example tests 2015-12-28 21:19:28 +00:00
map.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
ops.go go/ssa/interp: fix bug causing subelements of aggregates to change address. 2015-03-13 18:22:38 +00:00
reflect.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
value.go go/ssa/interp: fix bug causing subelements of aggregates to change address. 2015-03-13 18:22:38 +00:00