diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-02-16 15:50:40 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-02-16 15:50:40 +0100 |
commit | 35635f5514a9f702b5606146bf9ff4494030ff8f (patch) | |
tree | e106742b502e93053943aaccd85040147a28c3de /modules/tools/tests | |
parent | da93f0466cdeaf266debe5bacee6779354cf4a34 (diff) |
core,tools,codec: Moving towards lang tooling
Diffstat (limited to 'modules/tools/tests')
-rw-r--r-- | modules/tools/tests/c_iface.cpp | 20 |
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; +} } |