diff options
Diffstat (limited to 'lldb/packages/Python')
3 files changed, 18 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/Makefile b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/Makefile new file mode 100644 index 00000000000..82355a233cf --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/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-crash-incomplete-record/TestCompletionCrashIncompleteRecord.py b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/TestCompletionCrashIncompleteRecord.py new file mode 100644 index 00000000000..68bd864c008 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/TestCompletionCrashIncompleteRecord.py @@ -0,0 +1,4 @@ +from lldbsuite.test import lldbinline +from lldbsuite.test import decorators + +lldbinline.MakeInlineTest(__file__, globals(), [decorators.skipIf(bugnumber="rdar://53756116")]) diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp new file mode 100644 index 00000000000..f7ca83c6540 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp @@ -0,0 +1,11 @@ +int i; +struct F { + int &r; + F() : r(i) {} +}; +template <class T> struct unique_ptr { + F i; + unique_ptr() : i() {//%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList()) +} +}; +int main() {unique_ptr<F> u; } |