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
13 x := arena.New[[200]byte](a)
18 // ASAN should detect this deterministically as Free
19 // should poison the arena memory.
21 // MSAN should detect that this access is to freed
22 // memory. This may crash with an "accessed freed arena
23 // memory" error before MSAN gets a chance, but if MSAN
24 // was not enabled there would be a chance that this
25 // could fail to crash on its own.