diff options
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/zeroalloc.go | 7 | ||||
-rw-r--r-- | testdata/zeroalloc.txt | 0 |
2 files changed, 7 insertions, 0 deletions
diff --git a/testdata/zeroalloc.go b/testdata/zeroalloc.go new file mode 100644 index 000000000..53c6fa0bc --- /dev/null +++ b/testdata/zeroalloc.go @@ -0,0 +1,7 @@ +package main +func main() { + p := []byte{} + for len(p) >= 1 { + p = p[1:] + } +} diff --git a/testdata/zeroalloc.txt b/testdata/zeroalloc.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/testdata/zeroalloc.txt |