[pygccxml-commit] SF.net SVN: pygccxml: [922] pygccxml_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2007-02-24 18:37:52
|
Revision: 922
http://svn.sourceforge.net/pygccxml/?rev=922&view=rev
Author: roman_yakovenko
Date: 2007-02-24 10:37:52 -0800 (Sat, 24 Feb 2007)
Log Message:
-----------
adding new test case for free functions name mangling
Modified Paths:
--------------
pygccxml_dev/unittests/data/demangled.hpp
pygccxml_dev/unittests/demangled_tester.py
Modified: pygccxml_dev/unittests/data/demangled.hpp
===================================================================
--- pygccxml_dev/unittests/data/demangled.hpp 2007-02-23 18:21:40 UTC (rev 921)
+++ pygccxml_dev/unittests/data/demangled.hpp 2007-02-24 18:37:52 UTC (rev 922)
@@ -24,4 +24,6 @@
}
+void set_a();
+
#endif//__demangled_hpp
\ No newline at end of file
Modified: pygccxml_dev/unittests/demangled_tester.py
===================================================================
--- pygccxml_dev/unittests/demangled_tester.py 2007-02-23 18:21:40 UTC (rev 921)
+++ pygccxml_dev/unittests/demangled_tester.py 2007-02-24 18:37:52 UTC (rev 922)
@@ -41,6 +41,12 @@
cls = demangled.class_( "item_t<25214903917l, 11l, 2147483648l>" )
self.failUnless( cls._name == 'item_t<25214903917,11,2147483648>' )
+ def test_free_function( self ):
+ f = self.global_ns.free_functions('set_a', allow_empty=True)
+ if not f:
+ return
+ f = f[0]
+ self.failUnless( f.mangled )
class tester_32_t( tester_impl_t ):
def __init__(self, *args):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|