summaryrefslogtreecommitdiff
path: root/modules/tools/tests/c_iface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/tests/c_iface.cpp')
-rw-r--r--modules/tools/tests/c_iface.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/tools/tests/c_iface.cpp b/modules/tools/tests/c_iface.cpp
index 01f1106..4f1b744 100644
--- a/modules/tools/tests/c_iface.cpp
+++ b/modules/tools/tests/c_iface.cpp
@@ -14,6 +14,14 @@ using TestStruct = Struct<
Member<Float64, "b">
>;
+using TestArray = Array<
+ Int64, 1
+>;
+
+using TestStructArray = Struct<
+ Member<TestArray, "array">
+>;
+
using TestEmptyInterface = Interface<>;
using TestOneFunctionInterface = Interface<
@@ -23,6 +31,10 @@ using TestOneFunctionInterface = Interface<
using TestStructFunctionInterface = Interface<
Member<Function<TestStruct, Int32>, "two">
>;
+
+using TestArrayFunctionInterface = Interface<
+ Member<Function<TestStructArray, Int32>, "three">
+>;
}
template<typename Schema>
@@ -72,4 +84,12 @@ SAW_TEST("CIface Struct Function Interface"){
test_generate<schema::TestStructFunctionInterface>(res);
std::cout<<"\n"<<res<<"\n"<<std::endl;
}
+
+SAW_TEST("CIface Array Function Interface"){
+ using namespace saw;
+
+ std::string res;
+ test_generate<schema::TestArrayFunctionInterface>(res);
+ std::cout<<"\n"<<res<<"\n"<<std::endl;
+}
}