X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fclient.cpp;h=1029abeb7fa67ea1c3e4cc269e4260b218a2f4a4;hp=97d309e21020632c36cbe986698985a43a9f2d64;hb=528c5faa455bf7a92fe612346cc03b8032b17f7f;hpb=29ba0e9777f576fa318decb2915bf8895bf233eb diff --git a/example-codegen/client.cpp b/example-codegen/client.cpp index 97d309e..1029abe 100644 --- a/example-codegen/client.cpp +++ b/example-codegen/client.cpp @@ -6,8 +6,9 @@ #include -// include library header -#include "codegen_client.hxx" +// include generated library headers +#include "default_client.hxx" +#include "other_client.hxx" int main(int argc, char** argv) { @@ -24,10 +25,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, 20, "hello", std::pair(10,20)) ) + && ( cc_other.t3(10) == 10 ) + && ( cc_other.t3(std::vector(1,10)) ) + && ( cc_other.t3(foo) ) ) ? EXIT_SUCCESS : EXIT_FAILURE; }