diff options
author | Matthew Dempsky <mdempsky@google.com> | 2021-06-11 09:54:40 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2021-06-12 14:36:25 +0000 |
commit | db7c868307c87c5e9338e1cb0b5738eb96a929ad (patch) | |
tree | 81da1a9d7ecf69fa79c907d7c6c5db754e1f7a57 /test/typeparam/dictionaryCapture.go | |
parent | 0132b91127c3cf6e19e0e1db014a04219427171e (diff) | |
download | go-db7c868307c87c5e9338e1cb0b5738eb96a929ad.tar.gz go-db7c868307c87c5e9338e1cb0b5738eb96a929ad.zip |
[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>
Diffstat (limited to 'test/typeparam/dictionaryCapture.go')
-rw-r--r-- | test/typeparam/dictionaryCapture.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/typeparam/dictionaryCapture.go b/test/typeparam/dictionaryCapture.go index bb35df5309..1b2ee1de91 100644 --- a/test/typeparam/dictionaryCapture.go +++ b/test/typeparam/dictionaryCapture.go @@ -8,8 +8,6 @@ // immediately called and we need to capture the dictionary // required for later invocation. -// TODO: copy this test file, add -l to gcflags. - package main func main() { |