aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/python_api/value_var_update/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'packages/Python/lldbsuite/test/python_api/value_var_update/main.c')
-rw-r--r--packages/Python/lldbsuite/test/python_api/value_var_update/main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/python_api/value_var_update/main.c b/packages/Python/lldbsuite/test/python_api/value_var_update/main.c
new file mode 100644
index 000000000000..9ffca5cbb9f8
--- /dev/null
+++ b/packages/Python/lldbsuite/test/python_api/value_var_update/main.c
@@ -0,0 +1,15 @@
+struct complex_type {
+ struct { long l; } inner;
+ struct complex_type *complex_ptr;
+};
+
+int main() {
+ int i = 0;
+ struct complex_type c = { { 1L }, &c };
+ for (int j = 3; j < 20; j++)
+ {
+ c.inner.l += (i += j);
+ i = i - 1; // break here
+ }
+ return i;
+}