summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/process/launch/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/process/launch/main.cpp')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/process/launch/main.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/process/launch/main.cpp b/lldb/packages/Python/lldbsuite/test/commands/process/launch/main.cpp
new file mode 100644
index 00000000000..f2035d55167
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/commands/process/launch/main.cpp
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int
+main (int argc, char **argv)
+{
+ char buffer[1024];
+
+ fgets (buffer, sizeof (buffer), stdin);
+ fprintf (stdout, "%s", buffer);
+
+
+ fgets (buffer, sizeof (buffer), stdin);
+ fprintf (stderr, "%s", buffer);
+
+ return 0;
+}
OpenPOWER on IntegriCloud