xref: /llvm-project/lldb/test/API/functionalities/postmortem/minidump-new/linux-x86_64_not_crashed.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1 void InstallBreakpad();
2 void WriteMinidump();
3 
4 int global = 42;
5 
bar(int x)6 int bar(int x) {
7   WriteMinidump();
8   int y = 4 * x + global;
9   return y;
10 }
11 
foo(int x)12 int foo(int x) {
13   int y = 2 * bar(3 * x);
14   return y;
15 }
16 
17 extern "C" void _start();
18 
_start()19 void _start() {
20   InstallBreakpad();
21   foo(1);
22 }
23