diff options
Diffstat (limited to 'modules/tools/tests/c_iface.cpp')
-rw-r--r-- | modules/tools/tests/c_iface.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/tools/tests/c_iface.cpp b/modules/tools/tests/c_iface.cpp index 01f981e..b70131e 100644 --- a/modules/tools/tests/c_iface.cpp +++ b/modules/tools/tests/c_iface.cpp @@ -36,6 +36,10 @@ using TestArrayFunctionInterface = Interface< Member<Function<TestArray, Int32>, "three"> >; +using TestStructArrayFunctionInterface = Interface< + Member<Function<TestStructArray, Int32>, "three"> +>; + using TestMultiFunctionInterface = Interface< Member<Function<TestArray, Float32>, "foo">, Member<Function<Float64, Int8>, "bar">, @@ -100,4 +104,14 @@ SAW_TEST("CIface Array Function Interface"){ std::cout<<"\n"<<res<<"\n"<<std::endl; std::cout<<"\nSource\n"<<src<<"\n"<<std::endl; } + +SAW_TEST("CIface Struct Array Function Interface"){ + using namespace saw; + + std::string res; + std::string src; + test_generate<schema::TestStructArrayFunctionInterface>(res, src); + std::cout<<"\n"<<res<<"\n"<<std::endl; + std::cout<<"\nSource\n"<<src<<"\n"<<std::endl; +} } |