Files
clang-p2996/lldb/test/Shell/Unwind/Inputs/basic-block-sections.c
Sriraman Tallam 2e5b701d93 This test includes a source that will produce basic blocks and hence sections with -fbasic-block-sections=all.
The test reorders the basic blocks to be dis-contiguous in the address space and checks if the back trace contains the right symbol.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D89179
2020-10-16 21:31:42 -07:00

19 lines
185 B
C

int k = 1;
int bar() {
return 0;
}
int foo() {
return bar();
}
int main() {
// Control flow to create basic block sections.
if (k)
foo();
else
bar();
return 0;
}