1#include <stdio.h>
2
3int global_test_var = 10;
4
5int
6main()
7{
8 int test_var = 10;
9 printf (format: "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;
15}
16

source code of lldb/test/API/sample_test/main.c