[ORC] Fail materialization in tasks that are destroyed before running.
[llvm-project.git] / lldb / test / API / functionalities / ptr_refs / main.c
blobcfd1acffd5dca73fdd83dc9d6662f211b6ba044a
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 struct referent {
6 const char *p;
7 };
9 int main (int argc, char const *argv[])
11 const char *my_ptr = strdup("hello");
12 struct referent *r = malloc(sizeof(struct referent));
13 r->p = my_ptr;
15 printf("%p\n", r); // break here
17 return 0;