aboutsummaryrefslogtreecommitdiff
path: root/go/analysis/passes/directive/testdata/src/a/misplaced.s
diff options
context:
space:
mode:
Diffstat (limited to 'go/analysis/passes/directive/testdata/src/a/misplaced.s')
-rw-r--r--go/analysis/passes/directive/testdata/src/a/misplaced.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/go/analysis/passes/directive/testdata/src/a/misplaced.s b/go/analysis/passes/directive/testdata/src/a/misplaced.s
new file mode 100644
index 000000000..9e26dbc52
--- /dev/null
+++ b/go/analysis/passes/directive/testdata/src/a/misplaced.s
@@ -0,0 +1,19 @@
+// 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.
+
+// want +1 `//go:debug directive only valid in Go source files`
+//go:debug panicnil=1
+
+/*
+can skip over comments
+//go:debug doesn't matter here
+*/
+
+// want +1 `//go:debug directive only valid in Go source files`
+//go:debug panicnil=1
+
+package a
+
+// no error here because we can't parse this far
+//go:debug panicnil=1