mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
transform: add allocation alias regression cases
Add allocation diagnostics coverage for pointer-returning helpers, aggregate slice returns, and conditional pointer returns before changing the allocation optimizer. The golden files record the current heap-allocation behavior so later commits show exactly which diagnostics each optimizer improvement removes.
This commit is contained in:
Vendored
+14
-10
@@ -1,10 +1,14 @@
|
||||
testdata/allocs2.go:13.1,13.9 1 0
|
||||
testdata/allocs2.go:23.1,23.22 1 0
|
||||
testdata/allocs2.go:26.1,26.43 1 0
|
||||
testdata/allocs2.go:28.1,28.25 1 0
|
||||
testdata/allocs2.go:31.1,31.22 1 0
|
||||
testdata/allocs2.go:38.1,38.23 1 0
|
||||
testdata/allocs2.go:46.1,46.23 1 0
|
||||
testdata/allocs2.go:48.1,48.22 1 0
|
||||
testdata/allocs2.go:51.1,51.9 1 0
|
||||
testdata/allocs2.go:52.1,52.9 1 0
|
||||
testdata/allocs2.go:12.1,12.9 1 0
|
||||
testdata/allocs2.go:21.1,21.22 1 0
|
||||
testdata/allocs2.go:24.1,24.43 1 0
|
||||
testdata/allocs2.go:26.1,26.25 1 0
|
||||
testdata/allocs2.go:29.1,29.22 1 0
|
||||
testdata/allocs2.go:36.1,36.23 1 0
|
||||
testdata/allocs2.go:44.1,44.23 1 0
|
||||
testdata/allocs2.go:46.1,46.22 1 0
|
||||
testdata/allocs2.go:49.1,49.9 1 0
|
||||
testdata/allocs2.go:50.1,50.9 1 0
|
||||
testdata/allocs2.go:98.1,98.23 1 0
|
||||
testdata/allocs2.go:107.1,107.21 1 0
|
||||
testdata/allocs2.go:114.1,114.23 1 0
|
||||
testdata/allocs2.go:128.1,128.23 1 0
|
||||
|
||||
Reference in New Issue
Block a user