(no commit message)
[libt2n] / example-codegen / client.cpp
index 266bef0..1029abe 100644 (file)
@@ -6,8 +6,9 @@
 
 #include <socket_client.hxx>
 
-// 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,12 +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<int, float>(10,20)) )
           && ( cc_other.t3(10) == 10 ) 
-          && ( cc_other.t3(std::vector<int>(1,10)) ) )
+          && ( cc_other.t3(std::vector<int>(1,10)) ) 
+          && ( cc_other.t3(foo) ) )
     ? EXIT_SUCCESS : EXIT_FAILURE;
 }