llvm-project/compiler-rt/test/msan/SharedLibs/dso-origin-so.cc

15 lines
204 B
C++

#include <stdlib.h>
#include "dso-origin.h"
void my_access(int *p) {
volatile int tmp;
// Force initialize-ness check.
if (*p)
tmp = 1;
}
void *my_alloc(unsigned sz) {
return malloc(sz);
}