summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx')
-rw-r--r--llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx b/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx
new file mode 100644
index 00000000000..97f190b0b9b
--- /dev/null
+++ b/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx
@@ -0,0 +1,16 @@
+//===- llvm/unittest/Support/DynamicLibrary/DynamicLibraryLib.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