repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lldb
/
test
/
API
/
macosx
/
stack-corefile
/
main.c
blob
afc206b6de847ad5cd1ada8f5f13b2fdb602b3f4
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
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
}