[lldb][Test] Add C-array test-cases to CPlusPlusNameParser unit-tests

Make sure we test the code path where we parse
function templates instantiated with C-arrays.
This commit is contained in:
Michael Buch 2022-10-22 12:14:28 +01:00
parent c1bf4c3c5d
commit 46d8428680
1 changed files with 6 additions and 0 deletions

View File

@ -116,6 +116,12 @@ TEST(CPlusPlusLanguage, MethodNameParsing) {
"const volatile &&", "llvm::Optional<llvm::MCFixupKind>::operator*"},
{"void foo<Dummy<char [10]>>()", "", "foo<Dummy<char [10]>>", "()", "",
"foo<Dummy<char [10]>>"},
{"void foo<Bar<Bar<int>[10]>>()", "", "foo<Bar<Bar<int>[10]>>", "()", "",
"foo<Bar<Bar<int>[10]>>"},
{"void foo<Bar[10]>()", "", "foo<Bar[10]>", "()", "",
"foo<Bar[10]>"},
{"void foo<Bar[]>()", "", "foo<Bar[]>", "()", "",
"foo<Bar[]>"},
// auto return type
{"auto std::test_return_auto<int>() const", "std",