diff options
Diffstat (limited to 'Examples/test-suite/errors/cpp_template_partial_specialization_defaults.i')
-rw-r--r-- | Examples/test-suite/errors/cpp_template_partial_specialization_defaults.i | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Examples/test-suite/errors/cpp_template_partial_specialization_defaults.i b/Examples/test-suite/errors/cpp_template_partial_specialization_defaults.i new file mode 100644 index 000000000..25b2c5c36 --- /dev/null +++ b/Examples/test-suite/errors/cpp_template_partial_specialization_defaults.i @@ -0,0 +1,9 @@ +%module xxx + +template<class Y, class T=int> struct X { void primary() {} }; +template<class YY> struct X<YY*> { void special(YY*) {} }; + +%template(Xbad1) X<>; +%template(Xokay1) X<const char *>; +%template(Xokay2) X<const short *, int>; +%template(Xbad2) X<const char *, int, double>; |