[lldb][NFC] Check in crashing test case
authorRaphael Isemann <teemperor@gmail.com>
Tue, 30 Jul 2019 12:20:03 +0000 (12:20 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 30 Jul 2019 12:20:03 +0000 (12:20 +0000)
llvm-svn: 367307

lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/TestCompletionCrash1.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/expression_command/completion-crash1/main.cpp [new file with mode: 0644]

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 (file)
index 0000000..82355a2
--- /dev/null
@@ -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 (file)
index 0000000..3f2a610
--- /dev/null
@@ -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 (file)
index 0000000..7b123c0
--- /dev/null
@@ -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>{}; }