summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/expression/completion-crash2/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/completion-crash2/main.cpp')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/expression/completion-crash2/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/completion-crash2/main.cpp b/lldb/packages/Python/lldbsuite/test/commands/expression/completion-crash2/main.cpp
new file mode 100644
index 00000000000..02f15c295c2
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/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