test support for overloaded procedures
authorJens Thiele <jens.thiele@intra2net.com>
Tue, 21 Nov 2006 12:49:49 +0000 (12:49 +0000)
committerJens Thiele <jens.thiele@intra2net.com>
Tue, 21 Nov 2006 12:49:49 +0000 (12:49 +0000)
example-codegen/client.cpp
example-codegen/server.hxx

index 97d309e..260a60c 100644 (file)
@@ -28,6 +28,7 @@ int main(int argc, char** argv)
           && ( 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, 20, "hello", std::pair<int, float>(10,20)) )
+          && ( cc_other.t3(10) == 10 ) )
     ? EXIT_SUCCESS : EXIT_FAILURE;
 }
index ccca538..c69a9d5 100644 (file)
@@ -1,7 +1,7 @@
 #include <string>
 #include "codegen_common.hxx"
 
-LIBT2N_SET_DEFAULTGROUP(example);
+LIBT2N_SET_DEFAULTGROUP(default);
 
 LIBT2N_EXPORT std::string testfunc(std::string str) 
 {
@@ -38,3 +38,8 @@ LIBT2N_EXPORT_GROUP(other) bool t3(int i, float f, const string &s, const pair<i
 {
     return (i==p.first) && (f==p.second) && (s=="hello");
 }
+
+LIBT2N_EXPORT_GROUP(other) int t3(int i)
+{
+    return i;
+}