brintos

brintos / llvm-project-archived public Read only

0
0
Text · 425 B · df22f57 Raw
16 lines · c
1#include <stdio.h>2 3int global_test_var = 10;4 5int6main()7{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;15}16