mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-11 19:36:06 +00:00

when we have only an in-memory copy of the binary. Also added a test for the generation of these symbols in the in-memory and regular cases. <rdar://problem/43160401> llvm-svn: 339833
27 lines
383 B
C++
27 lines
383 B
C++
#include <stdio.h>
|
|
#include <fcntl.h>
|
|
|
|
#include <chrono>
|
|
#include <thread>
|
|
|
|
extern void dont_strip_me()
|
|
{
|
|
printf("I wasn't stripped\n");
|
|
}
|
|
|
|
static void *a_function()
|
|
{
|
|
while (1)
|
|
{
|
|
std::this_thread::sleep_for(std::chrono::microseconds(100));
|
|
dont_strip_me();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int main(int argc, char const *argv[])
|
|
{
|
|
a_function();
|
|
return 0;
|
|
}
|