summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/Makefile3
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/TestCompletionCrash1.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/main.cpp12
3 files changed, 19 insertions, 0 deletions
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 00000000000..82355a233cf
--- /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 00000000000..3f2a6100607
--- /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 00000000000..7b123c0662d
--- /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 <class> struct au {
+ a ay;
+ ~au() { //%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList())
+ }
+};
+}
+int main() { std::au<int>{}; }
OpenPOWER on IntegriCloud