summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-07-31 12:15:21 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-07-31 12:15:21 +0000
commitc8c5226145fd0d9a2c7a76bbd29d04b4225834f1 (patch)
treee0100255eb9f0360b2b6cf5572a038c50ce83f6c /lldb/packages/Python/lldbsuite/test/expression_command
parenta686c60c45d516cc8870b77af97fa66e3578807d (diff)
downloadbcm5719-llvm-c8c5226145fd0d9a2c7a76bbd29d04b4225834f1.tar.gz
bcm5719-llvm-c8c5226145fd0d9a2c7a76bbd29d04b4225834f1.zip
[lldb][NFC] Check in completion crash test case
llvm-svn: 367420
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command')
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/Makefile3
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/TestCompletionCrashIncompleteRecord.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp11
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; }
OpenPOWER on IntegriCloud