X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fclient.cpp;h=008d9e1745463af8aea1644eca6710139fcb4c71;hp=266bef0aca2fdca359a9c0158fc4c7a342776ef6;hb=63291e4f84b127b479bee0710860e5fdbfbd5b11;hpb=e5bc4700c8dd5a178d4c40c163a4107901698b6f diff --git a/example-codegen/client.cpp b/example-codegen/client.cpp index 266bef0..008d9e1 100644 --- a/example-codegen/client.cpp +++ b/example-codegen/client.cpp @@ -24,12 +24,15 @@ int main(int argc, char** argv) throwok=(std::string(e.what())=="throw me around"); } + Foo foo={10,10}; + return ( throwok && ( cc.testfunc("hello") == "hello, testfunc() was here" ) && ( cc.testfunc_ref("hello") == "hello, testfunc() was here" ) && ( cc.t2(10) == 10 ) && ( cc_other.t3(10, 20, "hello", std::pair(10,20)) ) && ( cc_other.t3(10) == 10 ) - && ( cc_other.t3(std::vector(1,10)) ) ) + && ( cc_other.t3(std::vector(1,10)) ) + && ( cc_other.t3(foo) ) ) ? EXIT_SUCCESS : EXIT_FAILURE; }