aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/zeroalloc.go
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/zeroalloc.go')
-rw-r--r--testdata/zeroalloc.go7
1 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:]
+ }
+}