]> Cypherpunks.ru repositories - gostls13.git/blob - test/gc.go
fix "declared and not used" in tests;
[gostls13.git] / test / gc.go
1 // $G $F.go && $L $F.$A && ./$A.out
2
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
7 package main
8
9 import "malloc"
10
11 func mk2() {
12         b := new([10000]byte);
13         _ = b;
14 //      println(b, "stored at", &b);
15 }
16
17 func mk1() {
18         mk2();
19 }
20
21 func main() {
22         for i := 0; i < 10; i++ {
23                 mk1();
24                 malloc.GC();
25         }
26 }