Skip to content

Commit 46d8428

Browse files
committed
[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.
1 parent c1bf4c3 commit 46d8428

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ TEST(CPlusPlusLanguage, MethodNameParsing) {
116116
"const volatile &&", "llvm::Optional<llvm::MCFixupKind>::operator*"},
117117
{"void foo<Dummy<char [10]>>()", "", "foo<Dummy<char [10]>>", "()", "",
118118
"foo<Dummy<char [10]>>"},
119+
{"void foo<Bar<Bar<int>[10]>>()", "", "foo<Bar<Bar<int>[10]>>", "()", "",
120+
"foo<Bar<Bar<int>[10]>>"},
121+
{"void foo<Bar[10]>()", "", "foo<Bar[10]>", "()", "",
122+
"foo<Bar[10]>"},
123+
{"void foo<Bar[]>()", "", "foo<Bar[]>", "()", "",
124+
"foo<Bar[]>"},
119125

120126
// auto return type
121127
{"auto std::test_return_auto<int>() const", "std",

0 commit comments

Comments
 (0)