summaryrefslogtreecommitdiff
path: root/unittests/Support/DynamicLibrary/ExportedFuncs.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 10:51:19 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 10:51:19 +0000
commiteb11fae6d08f479c0799db45860a98af528fa6e7 (patch)
tree44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /unittests/Support/DynamicLibrary/ExportedFuncs.cpp
parentb8a2042aa938069e862750553db0e4d82d25822c (diff)
Notes
Diffstat (limited to 'unittests/Support/DynamicLibrary/ExportedFuncs.cpp')
-rw-r--r--unittests/Support/DynamicLibrary/ExportedFuncs.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/unittests/Support/DynamicLibrary/ExportedFuncs.cpp b/unittests/Support/DynamicLibrary/ExportedFuncs.cpp
new file mode 100644
index 000000000000..370c8cb471d1
--- /dev/null
+++ b/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; }