diff options
Diffstat (limited to 'lldb/test/expression_command/call-function/main.cpp')
| -rw-r--r-- | lldb/test/expression_command/call-function/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/test/expression_command/call-function/main.cpp b/lldb/test/expression_command/call-function/main.cpp new file mode 100644 index 00000000000..5391e09fcb1 --- /dev/null +++ b/lldb/test/expression_command/call-function/main.cpp @@ -0,0 +1,15 @@ +#include <iostream> +#include <string> + +int main (int argc, char const *argv[]) +{ + std::string str = "Hello world"; + std::cout << str << std::endl; + std::cout << str.c_str() << std::endl; + // Please test these expressions while stopped at this line: +#if 0 + print str + print str.c_str() +#endif + return 0; +} |

