Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / macosx / function-starts / main.cpp
blob188078a22ed91a66705ee52b186aa96465a6a37c
1 #include <stdio.h>
2 #include <fcntl.h>
4 #include <chrono>
5 #include <fstream>
6 #include <thread>
8 extern void dont_strip_me()
10 printf("I wasn't stripped\n");
13 static void *a_function()
15 while (1)
17 std::this_thread::sleep_for(std::chrono::microseconds(100));
18 dont_strip_me();
20 return 0;
23 int main(int argc, char const *argv[])
26 // Create file to signal that this process has started up.
27 std::ofstream f;
28 f.open(argv[1]);
30 a_function();
31 return 0;