Files
clang-p2996/lldb/test/expression_command/call-function/main.cpp
Jim Ingham 30fadafefe If a hand-called function is interrupted by hitting a breakpoint, then
when you continue to finish off the function call, the expression result
will be included as part of the thread stop info.

llvm-svn: 212506
2014-07-08 01:07:32 +00:00

29 lines
492 B
C++

#include <iostream>
#include <string>
struct Five
{
int number;
const char *name;
};
Five
returnsFive()
{
Five my_five = { 5, "five" };
return my_five;
}
int main (int argc, char const *argv[])
{
std::string str = "Hello world";
std::cout << str << std::endl;
std::cout << str.c_str() << std::endl;
Five main_five = returnsFive();
#if 0
print str
print str.c_str()
#endif
return 0; // Please test these expressions while stopped at this line:
}