Changeset View
Changeset View
Standalone View
Standalone View
lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
//===-- main.cpp ------------------------------------------------*- C++ -*-===// | //===-- main.cpp ------------------------------------------------*- C++ -*-===// | ||||
// | // | ||||
// The LLVM Compiler Infrastructure | // The LLVM Compiler Infrastructure | ||||
// | // | ||||
// This file is distributed under the University of Illinois Open Source | // This file is distributed under the University of Illinois Open Source | ||||
// License. See LICENSE.TXT for details. | // License. See LICENSE.TXT for details. | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#include <stdio.h> | #include <stdio.h> | ||||
int main (int argc, char const *argv[]) | int main (int argc, char const *argv[]) | ||||
{ | { | ||||
printf("Stop here\n"); //% self.runCmd("expression auto $add = [](int a, int b) { return a + b };") | printf("Stop here\n"); //% self.runCmd("expression auto $add = [](int a, int b) { return a + b; }") | ||||
//% self.expect("expression $add(2,3)", substrs = ['= 5']) | //% self.expect("expression $add(2,3)", substrs = ['= 5']) | ||||
return 0; | return 0; | ||||
} | } |