]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add line number test for #49436
authorDavid Chase <drchase@google.com>
Tue, 9 Nov 2021 16:47:49 +0000 (11:47 -0500)
committerDavid Chase <drchase@google.com>
Tue, 9 Nov 2021 20:47:54 +0000 (20:47 +0000)
commita0963164e86356092074473049cca7bff52afbce
tree771d42441c6b21a1516eac512b14e160ea3299bb
parent5430203a1e7f3ba3af70b17bf2eeb61efda2ae58
cmd/compile: add line number test for #49436

This enhances the existing line number test
to allow a specific -gcflags (e.g., -G=3)
and to permit ignoring duplicate line numbers
(which is arguably a bug, but not THIS bug,
and it lowers the risk of a flaky test).

Limited to Linux/Darwin and amd64/arm64,
also tests with "unified" mangling.

And, using these new powers, adds a test.

Updates #49436.

Change-Id: I09c82e6a08d53edd5a752522a827e872d3e16e0b
Reviewed-on: https://go-review.googlesource.com/c/go/+/362714
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/debug_lines_test.go
src/cmd/compile/internal/ssa/testdata/pushback.go [new file with mode: 0644]