Author: spyffe
Date: Thu Apr 14 19:26:32 2016
New Revision: 266397

URL: http://llvm.org/viewvc/llvm-project?rev=266397&view=rev
Log:
Added a testcase for defining and using lambdas in the expression parser.

<rdar://problem/25739133>

Added:
    lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/
    lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/TestLambdas.py
    lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp

Added: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/TestLambdas.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/TestLambdas.py?rev=266397&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/TestLambdas.py 
(added)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/TestLambdas.py 
Thu Apr 14 19:26:32 2016
@@ -0,0 +1,4 @@
+from lldbsuite.test import lldbinline
+from lldbsuite.test import decorators
+
+lldbinline.MakeInlineTest(__file__, globals(), [])

Added: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp?rev=266397&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp Thu Apr 
14 19:26:32 2016
@@ -0,0 +1,17 @@
+//===-- main.cpp ------------------------------------------------*- C++ 
-*-===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include <stdio.h>
+
+int main (int argc, char const *argv[])
+{
+    printf("Stop here\n");     //% self.runCmd("expression auto $add = [](int 
a, int b) { return a + b };")
+                               //% self.expect("expression $add(2,3)", substrs 
= ['= 5'])
+    return 0; 
+}


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to