blob: 6049ea14e9bfa9a3a4ab26ccb4169c34968f1552 [file] [log] [blame]
Russ Coxd2cc9882012-02-16 23:50:37 -05001// run
Russ Cox1ce17912009-01-26 17:37:05 -08002
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
Rob Pike83976e32012-02-19 14:28:53 +11007// A simple test of the garbage collector.
8
Russ Cox1ce17912009-01-26 17:37:05 -08009package main
10
11func main() {
Russ Coxebd27d62009-10-09 11:18:32 -070012 for i := 0; i < 1e5; i++ {
Rob Pike4f61fc92010-09-04 10:36:13 +100013 x := new([100]byte)
14 _ = x
Russ Cox1ce17912009-01-26 17:37:05 -080015 }
16}