From: Raphael Isemann Date: Tue, 30 Jul 2019 12:20:03 +0000 (+0000) Subject: [lldb][NFC] Check in crashing test case X-Git-Tag: llvmorg-11-init~13301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e85b6f3bd7775a83d5880e0087cb5f434c12626;p=platform%2Fupstream%2Fllvm.git [lldb][NFC] Check in crashing test case llvm-svn: 367307 --- 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{}; }