summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter-tests/stack-var.c
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests/dexter-tests/stack-var.c')
-rw-r--r--debuginfo-tests/dexter-tests/stack-var.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/debuginfo-tests/dexter-tests/stack-var.c b/debuginfo-tests/dexter-tests/stack-var.c
new file mode 100644
index 00000000000..15321b0ab14
--- /dev/null
+++ b/debuginfo-tests/dexter-tests/stack-var.c
@@ -0,0 +1,16 @@
+// REQUIRES: system-linux, lldb
+//
+// RUN: %dexter --fail-lt 1.0 -w \
+// RUN: --builder clang-c --debugger 'lldb' --cflags "-O -glldb" -- %s
+
+void __attribute__((noinline, optnone)) bar(int *test) {}
+int main() {
+ int test;
+ test = 23;
+ bar(&test); // DexLabel('before_bar')
+ return test; // DexLabel('after_bar')
+}
+
+// DexExpectWatchValue('test', '23', on_line='before_bar')
+// DexExpectWatchValue('test', '23', on_line='after_bar')
+
OpenPOWER on IntegriCloud