aboutsummaryrefslogtreecommitdiff
path: root/test/uintptrkeepalive.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/uintptrkeepalive.go')
-rw-r--r--test/uintptrkeepalive.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/uintptrkeepalive.go b/test/uintptrkeepalive.go
new file mode 100644
index 0000000000..97834dcd1a
--- /dev/null
+++ b/test/uintptrkeepalive.go
@@ -0,0 +1,11 @@
+// errorcheck -std
+
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package p
+
+//go:uintptrkeepalive
+func missingNosplit(uintptr) { // ERROR "go:uintptrkeepalive requires go:nosplit"
+}