1#include <iostream>
2#include <string>
3
4int main(int argc, char **argv) {
5 for (std::string line; std::getline(is&: std::cin, str&: line);)
6 std::cout << "stdout: " << line << '\n';
7 return 0;
8}
9

source code of lldb/test/API/iohandler/stdio/main.cpp