1// Compile with $CC -nostdlib -shared TestModule.c -o TestModule.so
2// The actual contents of the test module is not important here. I am using this
3// because it
4// produces an extremely tiny (but still perfectly valid) module.
5
6void boom(void) {
7 char *BOOM;
8 *BOOM = 47;
9}
10

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of lldb/unittests/Target/Inputs/TestModule.c