aboutsummaryrefslogtreecommitdiff
path: root/test/run.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-06-08 11:57:11 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-07-07 11:12:24 +0000
commit5c42b6a953036b906626f5b25b7655641fbad060 (patch)
tree6b49ce598089ab536a2d532d5fedcf5fa5aeb746 /test/run.go
parent49ade6b298c269e6d405d43a2e42dec218e97660 (diff)
downloadgo-5c42b6a953036b906626f5b25b7655641fbad060.tar.gz
go-5c42b6a953036b906626f5b25b7655641fbad060.zip
[dev.typeparams] test: add regress tests that fail(ed) with -G=3
This CL includes multiple test cases that exercise unique failures with -G=3 mode that did not affect unified IR mode. Most of these were found over a period of about 3 hours of manual experimentation. Thanks to Cuong Manh Le for test cases 11 and 12. Updates #46704. Change-Id: Ia2fa619536732b121b6c929329065c85b9384511 Reviewed-on: https://go-review.googlesource.com/c/go/+/326169 Trust: Matthew Dempsky <mdempsky@google.com> Trust: Dan Scales <danscales@google.com> Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dan Scales <danscales@google.com> Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'test/run.go')
-rw-r--r--test/run.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/run.go b/test/run.go
index ff8bf4b229..df3befbf21 100644
--- a/test/run.go
+++ b/test/run.go
@@ -86,7 +86,7 @@ var (
// dirs are the directories to look for *.go files in.
// TODO(bradfitz): just use all directories?
- dirs = []string{".", "ken", "chan", "interface", "syntax", "dwarf", "fixedbugs", "codegen", "runtime", "abi", "typeparam"}
+ dirs = []string{".", "ken", "chan", "interface", "syntax", "dwarf", "fixedbugs", "codegen", "runtime", "abi", "typeparam", "typeparam/mdempsky"}
// ratec controls the max number of tests running at a time.
ratec chan bool
@@ -2203,6 +2203,19 @@ var g3Failures = setOf(
"fixedbugs/issue9691.go", // "cannot assign to int(.autotmp_4)" (probably irgen's fault)
"typeparam/nested.go", // -G=3 doesn't support function-local types with generics
+
+ "typeparam/mdempsky/1.go",
+ "typeparam/mdempsky/2.go",
+ "typeparam/mdempsky/3.go",
+ "typeparam/mdempsky/4.go",
+ "typeparam/mdempsky/5.go",
+ "typeparam/mdempsky/7.go",
+ "typeparam/mdempsky/8.go",
+ "typeparam/mdempsky/9.go",
+ "typeparam/mdempsky/11.go",
+ "typeparam/mdempsky/12.go",
+ "typeparam/mdempsky/13.go",
+ "typeparam/mdempsky/14.go",
)
var unifiedFailures = setOf(