summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/radar_9531204/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/expression_command/radar_9531204/main.c')
-rw-r--r--lldb/test/expression_command/radar_9531204/main.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/lldb/test/expression_command/radar_9531204/main.c b/lldb/test/expression_command/radar_9531204/main.c
new file mode 100644
index 00000000000..d50c53b3c65
--- /dev/null
+++ b/lldb/test/expression_command/radar_9531204/main.c
@@ -0,0 +1,24 @@
+//===-- main.c --------------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+#include <stdio.h>
+
+// breakpoint set -n foo
+//
+//
+int foo (int value)
+{
+ printf ("I got the value: %d.\n", value);
+}
+
+int main (int argc, char **argv)
+{
+ foo (argc);
+ printf ("Hello there: %d.\n", argc);
+ return 0;
+}
OpenPOWER on IntegriCloud