aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/test/TestSharedObject.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-07-26 15:12:47 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-07-30 12:24:14 +0100
commit986c186468e6023b234c24bd10ed9687f9eea0da (patch)
tree0f78d3221922a5730f13d8348cc930a9d0a63351 /src/backends/backendsCommon/test/TestSharedObject.hpp
parent1a81630bd9e633150be51366b4a01f9e859f84a8 (diff)
downloadarmnn-986c186468e6023b234c24bd10ed9687f9eea0da.tar.gz
IVGCVSW-3555 Add unit tests for the dynamic backend utility functions
* Added a test library to exercise the utility functions that handle the shared objects Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: Ic8095febca2a46050831eb42f55a714f3ae3bfe3
Diffstat (limited to 'src/backends/backendsCommon/test/TestSharedObject.hpp')
-rw-r--r--src/backends/backendsCommon/test/TestSharedObject.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/backends/backendsCommon/test/TestSharedObject.hpp b/src/backends/backendsCommon/test/TestSharedObject.hpp
new file mode 100644
index 0000000000..b2c515b1aa
--- /dev/null
+++ b/src/backends/backendsCommon/test/TestSharedObject.hpp
@@ -0,0 +1,20 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <cstdint>
+
+// No name mangling
+extern "C"
+{
+int TestFunction1(int i);
+}
+
+// C++ name mangling
+extern int TestFunction2(int i);
+
+// No external linkage
+int TestFunction3(int i);