From 3e85b6f3bd7775a83d5880e0087cb5f434c12626 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Tue, 30 Jul 2019 12:20:03 +0000 Subject: [PATCH] [lldb][NFC] Check in crashing test case llvm-svn: 367307 --- .../test/expression_command/completion-crash1/Makefile | 3 +++ .../completion-crash1/TestCompletionCrash1.py | 4 ++++ .../test/expression_command/completion-crash1/main.cpp | 12 ++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/Makefile create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/TestCompletionCrash1.py create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/main.cpp diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/Makefile b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/Makefile new file mode 100644 index 0000000..82355a2 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/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-crash1/TestCompletionCrash1.py b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/TestCompletionCrash1.py new file mode 100644 index 0000000..3f2a610 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/TestCompletionCrash1.py @@ -0,0 +1,4 @@ +from lldbsuite.test import lldbinline +from lldbsuite.test import decorators + +lldbinline.MakeInlineTest(__file__, globals(), [decorators.skipIf(bugnumber="rdar://53659341")]) diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/main.cpp new file mode 100644 index 0000000..7b123c0 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/main.cpp @@ -0,0 +1,12 @@ +namespace std { +struct a { + a() {} + a(a &&); +}; +template struct au { + a ay; + ~au() { //%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList()) + } +}; +} +int main() { std::au{}; } -- 2.7.4