aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-16 08:42:12 +0800
committerGitHub <noreply@github.com>2024-11-16 00:42:12 +0000
commitfbbb9d6f7bc8fd3ed309d195d723894572549cf8 (patch)
treec0064b248b27f3873a8c182c3916e597aafd2ff9 /test/old/testdir
parent6e4df18b457e9743c34068fd6e0a89fd04d3526c (diff)
downloadrneovim-fbbb9d6f7bc8fd3ed309d195d723894572549cf8.tar.gz
rneovim-fbbb9d6f7bc8fd3ed309d195d723894572549cf8.tar.bz2
rneovim-fbbb9d6f7bc8fd3ed309d195d723894572549cf8.zip
vim-patch:9.1.0866: filetype: LLVM IR files are not recognized (#31228)
Problem: filetype: LLVM IR files are not recognized Solution: detect '*.ll' files either as lifelines or llvm filetype (Wu, Zhenyu) closes: vim/vim#15824 https://github.com/vim/vim/commit/bc32bbddcfc2671158a4780838766ed2d1e14fa6 N/A patch: vim-patch:7e4b861: runtime(filetype): remove duplicated *.org file pattern Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'test/old/testdir')
-rw-r--r--test/old/testdir/test_filetype.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
index 62053f1c2c..f70144b379 100644
--- a/test/old/testdir/test_filetype.vim
+++ b/test/old/testdir/test_filetype.vim
@@ -2440,6 +2440,24 @@ func Test_inc_file()
filetype off
endfunc
+func Test_ll_file()
+ filetype on
+
+ " LLVM IR
+ call writefile(['target triple = "nvptx64-nvidia-cuda"'], 'Xfile.ll', 'D')
+ split Xfile.ll
+ call assert_equal('llvm', &filetype)
+ bwipe!
+
+ " lifelines
+ call writefile(['proc main() {}'], 'Xfile.ll', 'D')
+ split Xfile.ll
+ call assert_equal('lifelines', &filetype)
+ bwipe!
+
+ filetype off
+endfunc
+
func Test_lsl_file()
filetype on