diff options
Diffstat (limited to 'modules/tools/tests/c_iface.cpp')
-rw-r--r-- | modules/tools/tests/c_iface.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/tools/tests/c_iface.cpp b/modules/tools/tests/c_iface.cpp index 88899f7..01f1106 100644 --- a/modules/tools/tests/c_iface.cpp +++ b/modules/tools/tests/c_iface.cpp @@ -9,11 +9,20 @@ namespace { namespace schema { using namespace saw::schema; +using TestStruct = Struct< + Member<Int32, "a">, + Member<Float64, "b"> +>; + using TestEmptyInterface = Interface<>; using TestOneFunctionInterface = Interface< Member<Function<Int32, Int32>, "one"> >; + +using TestStructFunctionInterface = Interface< + Member<Function<TestStruct, Int32>, "two"> +>; } template<typename Schema> @@ -55,4 +64,12 @@ SAW_TEST("CIface One Function Interface"){ test_generate<schema::TestOneFunctionInterface>(res); std::cout<<"\n"<<res<<"\n"<<std::endl; } + +SAW_TEST("CIface Struct Function Interface"){ + using namespace saw; + + std::string res; + test_generate<schema::TestStructFunctionInterface>(res); + std::cout<<"\n"<<res<<"\n"<<std::endl; +} } |