]> Cypherpunks.ru repositories - gostls13.git/blob - test/fixedbugs/issue46525.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / fixedbugs / issue46525.go
1 // errorcheck -lang=go1.16
2
3 // Copyright 2021 The Go Authors. All rights reserved.  Use of this
4 // source code is governed by a BSD-style license that can be found in
5 // the LICENSE file.
6
7 package p
8
9 import "unsafe"
10
11 func main() {
12         _ = unsafe.Add(unsafe.Pointer(nil), 0) // ERROR "unsafe.Add requires go1.17 or later"
13         _ = unsafe.Slice(new(byte), 1)         // ERROR "unsafe.Slice requires go1.17 or later"
14 }