diff options
Diffstat (limited to 'src/debug/gosym/testdata/main.go')
-rw-r--r-- | src/debug/gosym/testdata/main.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/debug/gosym/testdata/main.go b/src/debug/gosym/testdata/main.go new file mode 100644 index 0000000..b770218 --- /dev/null +++ b/src/debug/gosym/testdata/main.go @@ -0,0 +1,10 @@ +package main + +func linefrompc() +func pcfromline() + +func main() { + // Prevent GC of our test symbols + linefrompc() + pcfromline() +} |