aboutsummaryrefslogtreecommitdiff
path: root/test/gc1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-26 17:37:05 -0800
committerRuss Cox <rsc@golang.org>2009-01-26 17:37:05 -0800
commit1ce17918e32afe42824404a1419b54a465e8b155 (patch)
tree716e6b85c74f50ceb20e1aa0bd630654b5c13e17 /test/gc1.go
parent5b129cda5f53aa217203a24bd44936092668c154 (diff)
downloadgo-1ce17918e32afe42824404a1419b54a465e8b155.tar.gz
go-1ce17918e32afe42824404a1419b54a465e8b155.zip
gc #0. mark and sweep collector.
R=r,gri DELTA=472 (423 added, 2 deleted, 47 changed) OCL=23522 CL=23541
Diffstat (limited to 'test/gc1.go')
-rw-r--r--test/gc1.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/gc1.go b/test/gc1.go
new file mode 100644
index 0000000000..d746e9c623
--- /dev/null
+++ b/test/gc1.go
@@ -0,0 +1,13 @@
+// $G $F.go && $L $F.$A && ./$A.out
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+func main() {
+ for i := 0; i < 1000000; i++ {
+ x := new([100]byte);
+ }
+}