patch 8.2.0568: the man filetype plugin overwrites the unnamed register

Problem:    The man filetype plugin overwrites the unnamed register.
Solution:   Use the black hole register. (Jason Franklin)
diff --git a/src/testdir/test_man.vim b/src/testdir/test_man.vim
index 9de8cb4..083b1ae 100644
--- a/src/testdir/test_man.vim
+++ b/src/testdir/test_man.vim
@@ -1,3 +1,5 @@
+" Test specifically for the Man filetype plugin.
+
 runtime ftplugin/man.vim
 
 func Test_g_ft_man_open_mode()
@@ -111,3 +113,21 @@
   %bw!
   set foldcolumn& number&
 endfunc
+
+" Check that the unnamed register is not overwritten.
+func Test_keep_unnamed_register()
+  %bw!
+
+  let @" = '---'
+
+  let wincnt = winnr('$')
+  Man vim
+  if wincnt == winnr('$')
+    " Vim manual page cannot be found.
+    return
+  endif
+
+  call assert_equal('---', @")
+
+  %bw!
+endfunc