aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/step_scripted/main.c
blob: 9023120c44312541fd8802eddc0c78182e86a564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

void foo() {
  int foo = 10; 
  printf("%d\n", foo); // Set a breakpoint here. 
  foo = 20;
  printf("%d\n", foo);
}

int main() {
  foo(); // Break on branch instruction.
  return 0;
}