diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-02-14 22:06:14 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-02-14 22:06:32 +0100 |
commit | da93f0466cdeaf266debe5bacee6779354cf4a34 (patch) | |
tree | 8c28040fe8571aa2d64af3ce14360ef5ed8fb721 /modules/tools/tests | |
parent | 5e386032b7436a24de9524e63691076f96a62a41 (diff) |
tools: Adding params and other dangling changes
Diffstat (limited to 'modules/tools/tests')
-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; +} } |