summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp')
-rw-r--r--llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp b/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp
new file mode 100644
index 00000000000..370c8cb471d
--- /dev/null
+++ b/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp
@@ -0,0 +1,16 @@
+//===- llvm/unittest/Support/DynamicLibrary/ExportedFuncs.cpp -------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "PipSqueak.h"
+
+#ifndef PIPSQUEAK_TESTA_RETURN
+#define PIPSQUEAK_TESTA_RETURN "ProcessCall"
+#endif
+
+extern "C" PIPSQUEAK_EXPORT const char *TestA() { return PIPSQUEAK_TESTA_RETURN; }
OpenPOWER on IntegriCloud