summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/expression/options/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/options/main.cpp')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/expression/options/main.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/options/main.cpp b/lldb/packages/Python/lldbsuite/test/commands/expression/options/main.cpp
new file mode 100644
index 00000000000..0d30c79bd22
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/commands/expression/options/main.cpp
@@ -0,0 +1,17 @@
+extern "C" int foo(void);
+static int static_value = 0;
+static int id = 1234;
+
+int
+bar()
+{
+ static_value++;
+ id++;
+ return static_value + id;
+}
+
+int main (int argc, char const *argv[])
+{
+ bar(); // breakpoint_in_main
+ return foo();
+}
OpenPOWER on IntegriCloud