summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-01-19 10:06:29 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-01-19 10:06:29 +0000
commit94994d372d014ce4c8758b9605d63fae651bd8aa (patch)
tree51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp
parent39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp')
-rw-r--r--packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp b/packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp
new file mode 100644
index 000000000000..0223bd0a75ea
--- /dev/null
+++ b/packages/Python/lldbsuite/test/tools/lldb-vscode/variables/main.cpp
@@ -0,0 +1,18 @@
+
+#define BUFFER_SIZE 32
+struct PointType {
+ int x;
+ int y;
+ int buffer[BUFFER_SIZE];
+};
+
+int g_global = 123;
+static int s_global = 234;
+
+int main(int argc, char const *argv[]) {
+ static float s_local = 2.25;
+ PointType pt = { 11,22, {0}};
+ for (int i=0; i<BUFFER_SIZE; ++i)
+ pt.buffer[i] = i;
+ return s_global - g_global - pt.y; // breakpoint 1
+}