1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 //go:build goexperiment.arenas
17 type T2 [1 << 20]byte // 1MiB
19 func TestSmoke(t *testing.T) {
23 tt := arena.New[T1](a)
26 ts := arena.MakeSlice[T1](a, 99, 100)
28 t.Errorf("Slice() len = %d, want 99", len(ts))
31 t.Errorf("Slice() cap = %d, want 100", cap(ts))
36 func TestSmokeLarge(t *testing.T) {
39 for i := 0; i < 10*64; i++ {