diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-25 17:21:04 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-25 17:21:04 +0100 |
commit | 1beffbce27a2beb4528a80d32bdab1b65ef6654f (patch) | |
tree | ee1c9818d2eb831a87890f60ca15a21b91cbb18a /modules/tools | |
parent | d765dfafc995e8f722847fb1d6ab189714af8987 (diff) |
tools: Added test for struct translation
Diffstat (limited to 'modules/tools')
-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; +} } |