From 005eff04cc117f8b7626248486ec53f87cb8d3c7 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Wed, 31 Jul 2019 12:06:22 +0000 Subject: [PATCH] [lldb][NFC] Check in another crashing test case llvm-svn: 367416 --- .../test/expression_command/completion-crash2/Makefile | 3 +++ .../completion-crash2/TestCompletionCrash2.py | 4 ++++ .../test/expression_command/completion-crash2/main.cpp | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/Makefile create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/TestCompletionCrash2.py create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/Makefile b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/Makefile new file mode 100644 index 0000000..82355a2 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/Makefile @@ -0,0 +1,3 @@ +LEVEL = ../../make +CXX_SOURCES := main.cpp +include $(LEVEL)/Makefile.rules diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/TestCompletionCrash2.py b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/TestCompletionCrash2.py new file mode 100644 index 0000000..922347a --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/TestCompletionCrash2.py @@ -0,0 +1,4 @@ +from lldbsuite.test import lldbinline +from lldbsuite.test import decorators + +lldbinline.MakeInlineTest(__file__, globals(), [decorators.skipIf(bugnumber="rdar://53754063")]) diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp new file mode 100644 index 0000000..02f15c2 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp @@ -0,0 +1,11 @@ +namespace n { +template class a {}; +template struct shared_ptr { + template + static void make_shared() { //%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList()) + typedef a c; + c d; + } +}; +} // namespace n +int main() { n::shared_ptr::make_shared(); } -- 2.7.4