aboutsummaryrefslogtreecommitdiff
path: root/unittests/Target/Inputs/TestModule.c
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Target/Inputs/TestModule.c')
-rw-r--r--unittests/Target/Inputs/TestModule.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/unittests/Target/Inputs/TestModule.c b/unittests/Target/Inputs/TestModule.c
new file mode 100644
index 000000000000..6347f7264944
--- /dev/null
+++ b/unittests/Target/Inputs/TestModule.c
@@ -0,0 +1,9 @@
+// Compile with $CC -nostdlib -shared TestModule.c -o TestModule.so
+// The actual contents of the test module is not important here. I am using this
+// because it
+// produces an extremely tiny (but still perfectly valid) module.
+
+void boom(void) {
+ char *BOOM;
+ *BOOM = 47;
+}