xref: /llvm-project/lldb/test/API/macosx/stack-corefile/main.c (revision fa639eda6535732a5fd79c3f551d5a667b810963)
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
main()4 int main() {
5   int stack_int = 5;
6   int *heap_int = (int*) malloc(sizeof (int));
7   *heap_int = 10;
8 
9   char stack_str[] = "stack string";
10   char *heap_str = (char*) malloc(80);
11   strcpy (heap_str, "heap string");
12 
13   return stack_int; // break here;
14 }
15