aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/errors/testdata/err5.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/errors/testdata/err5.go')
-rw-r--r--misc/cgo/errors/testdata/err5.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/cgo/errors/testdata/err5.go b/misc/cgo/errors/testdata/err5.go
new file mode 100644
index 0000000000..c12a290d38
--- /dev/null
+++ b/misc/cgo/errors/testdata/err5.go
@@ -0,0 +1,11 @@
+// Copyright 2023 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 main
+
+//line /tmp/_cgo_.go:1
+//go:cgo_dynamic_linker "/elf/interp"
+// ERROR MESSAGE: only allowed in cgo-generated code
+
+func main() {}