summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-07-31 12:06:22 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-07-31 12:06:22 +0000
commit005eff04cc117f8b7626248486ec53f87cb8d3c7 (patch)
tree1651e115bfa202ffcfd3ef586ae49c57bfdfc351 /lldb/packages/Python/lldbsuite/test
parent0d6048073795cc686552f228bdb11b2912dcef65 (diff)
downloadbcm5719-llvm-005eff04cc117f8b7626248486ec53f87cb8d3c7.tar.gz
bcm5719-llvm-005eff04cc117f8b7626248486ec53f87cb8d3c7.zip
[lldb][NFC] Check in another crashing test case
llvm-svn: 367416
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/Makefile3
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/TestCompletionCrash2.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp11
3 files changed, 18 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/Makefile b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/Makefile
new file mode 100644
index 00000000000..82355a233cf
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/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-crash2/TestCompletionCrash2.py b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/TestCompletionCrash2.py
new file mode 100644
index 00000000000..922347aa781
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/TestCompletionCrash2.py
@@ -0,0 +1,4 @@
+from lldbsuite.test import lldbinline
+from lldbsuite.test import decorators
+
+lldbinline.MakeInlineTest(__file__, globals(), [decorators.skipIf(bugnumber="rdar://53754063")])
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp
new file mode 100644
index 00000000000..02f15c295c2
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash2/main.cpp
@@ -0,0 +1,11 @@
+namespace n {
+template <class> class a {};
+template <class b> struct shared_ptr {
+ template <class...>
+ static void make_shared() { //%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList())
+ typedef a<b> c;
+ c d;
+ }
+};
+} // namespace n
+int main() { n::shared_ptr<int>::make_shared(); }
OpenPOWER on IntegriCloud