]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] test: add string quoting support to test/run.go
authorMatthew Dempsky <mdempsky@google.com>
Fri, 11 Jun 2021 16:54:40 +0000 (09:54 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 12 Jun 2021 14:36:25 +0000 (14:36 +0000)
commitdb7c868307c87c5e9338e1cb0b5738eb96a929ad
tree81da1a9d7ecf69fa79c907d7c6c5db754e1f7a57
parent0132b91127c3cf6e19e0e1db014a04219427171e
[dev.typeparams] test: add string quoting support to test/run.go

This CL copies go/build's splitQuoted function (used for parsing #cgo
directives within `import "C"` preambles) to parse test recipe
commands. In particular, this now allows writing "build" and "run"
tests that use -gcflags to pass multiple compiler flags.

Change-Id: I0d18a9c13a4ce24bbdfa1da8662c0498c93a6762
Reviewed-on: https://go-review.googlesource.com/c/go/+/327275
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
test/run.go
test/typeparam/dictionaryCapture-noinline.go [new file with mode: 0644]
test/typeparam/dictionaryCapture.go