From: William F. <wsf...@us...> - 2006-09-28 21:53:26
|
Update of /cvsroot/swig/SWIG/Examples/test-suite In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21663 Modified Files: common.mk Added Files: fvirtual.i Log Message: testcase for -fvirtual Index: common.mk =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/test-suite/common.mk,v retrieving revision 1.190 retrieving revision 1.191 diff -C2 -d -r1.190 -r1.191 *** common.mk 23 Sep 2006 00:00:58 -0000 1.190 --- common.mk 28 Sep 2006 21:53:23 -0000 1.191 *************** *** 160,163 **** --- 160,164 ---- extern_throws \ features \ + fvirtual \ friends \ global_ns_arg \ --- NEW FILE: fvirtual.i --- // This testcase is tests corner cases for the -fvirtual optimisation flag. // Note that the test-suite does not actually run with -fvirtual at any point, but this can be tested using the SWIG_FEATURES=-fvirtual env variable. %module fvirtual // Test overloaded methods #1508327 (requires a scripting language runtime test) %inline %{ class Node { public: virtual int addChild( Node *child ) { return 1; } virtual ~Node() {} }; class Switch : public Node { public : virtual int addChild( Node *child ) { return 2; } // This was hidden with -fvirtual virtual int addChild( Node *child, bool value ) { return 3; } virtual ~Switch() {} }; %} |