Skip to content

Commit 139f5c3

Browse files
committed
gopls: Update test cases.
Update test files for different types of reference relationships between asm and Go. Updates golang/go#71754
1 parent 7a107b7 commit 139f5c3

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

gopls/internal/test/marker/testdata/references/asm.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
1+
Test of asm references.
32

43
-- example/label_example.s --
54
TEXT ·JumpDemo(SB), $0-0
@@ -21,4 +20,3 @@ GLOBL ·myGlobal(SB), NOPTR, 8
2120
TEXT ·UseGlobal(SB), $0-0
2221
MOVQ ·myGlobal(SB), AX //@loc(refMyGlobal, "·myGlobal")
2322
RET
24-

gopls/internal/test/marker/testdata/references/asm_go.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
This test validates the References request functionality in Go assembly files.
22

3-
It ensures that references to both exported (`Add`) and unexported (`sub`) functions are correctly identified across Go and assembly files. The test covers:
4-
- Locating the definition of functions in both Go and assembly files.
5-
- Identifying all references to the functions (`Add` and `sub`) within the Go and assembly files.
6-
7-
The test includes:
8-
- `Add`: An exported function with references in both Go and assembly files.
9-
- `sub`: An unexported function with references in both Go and assembly files, including a usage in Go code (`var _ = sub`).
10-
11-
The assembly file demonstrates portable assembly syntax and verifies cross-file reference handling.
12-
133
-- go.mod --
144
module example.com
155
go 1.24

0 commit comments

Comments
 (0)