summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/sample_test/main.c
blob: 0164d7155b0977eb927766edc0e9b6bd6264efbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

int
main()
{
  int test_var = 10;
  printf ("Set a breakpoint here: %d.\n", test_var);
  //% test_var = self.frame().FindVariable("test_var")
  //% test_value = test_var.GetValueAsUnsigned()
  //% self.assertTrue(test_var.GetError().Success(), "Failed to fetch test_var")
  //% self.assertEqual(test_value, 10, "Failed to get the right value for test_var")
  return 0;
}