testsuite: i386: adapt to -std=gnu23 default change
[official-gcc.git] / libgo / go / runtime / msan0.go
blob2f5fd2d98216e542040e3bdab59c9084bd9037ab
1 // Copyright 2015 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 !msan
7 // Dummy MSan support API, used when not built with -msan.
9 package runtime
11 import (
12 "unsafe"
15 const msanenabled = false
17 // Because msanenabled is false, none of these functions should be called.
19 func msanread(addr unsafe.Pointer, sz uintptr) { throw("msan") }
20 func msanwrite(addr unsafe.Pointer, sz uintptr) { throw("msan") }
21 func msanmalloc(addr unsafe.Pointer, sz uintptr) { throw("msan") }
22 func msanfree(addr unsafe.Pointer, sz uintptr) { throw("msan") }
23 func msanmove(dst, src unsafe.Pointer, sz uintptr) { throw("msan") }