[NFC][RISCV] Remove CFIIndex argument from allocateStack (#117871)
[llvm-project.git] / lldb / test / API / sample_test / main.c
blobdf22f570bf33a2d4f1dc136ed9581c9bb03e7230
1 #include <stdio.h>
3 int global_test_var = 10;
5 int
6 main()
8 int test_var = 10;
9 printf ("Set a breakpoint here: %d.\n", test_var);
10 //% test_var = self.frame().FindVariable("test_var")
11 //% test_value = test_var.GetValueAsUnsigned()
12 //% self.assertSuccess(test_var.GetError(), "Failed to fetch test_var")
13 //% self.assertEqual(test_value, 10, "Failed to get the right value for test_var")
14 return global_test_var;