Author: Wim Lavrijsen <wlavrij...@lbl.gov>
Branch: cppyy-packaging
Changeset: r94747:c1d70477c996
Date: 2018-06-09 17:44 -0700
http://bitbucket.org/pypy/pypy/changeset/c1d70477c996/

Log:    more template tesst

diff --git a/pypy/module/_cppyy/test/test_templates.py 
b/pypy/module/_cppyy/test/test_templates.py
--- a/pypy/module/_cppyy/test/test_templates.py
+++ b/pypy/module/_cppyy/test/test_templates.py
@@ -89,6 +89,13 @@
         #_cppyy.gbl.SomeNS.tuplify(s, 1, 4., "aap")
         #assert s.str() == '(1, 4, aap)
 
+        _cppyy.gbl.gInterpreter.Declare("""
+            template<typename... myTypes>
+            int test04_variadic_func() { return sizeof...(myTypes); }
+        """)
+
+        assert _cppyy.gbl.test04_variadic_func['int', 'double', 'void*']() == 3
+
     def test05_variadic_overload(self):
         """Call an overloaded variadic function"""
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to