diff options
Diffstat (limited to 'Examples/test-suite/errors/cpp_template_repeat.i')
-rw-r--r-- | Examples/test-suite/errors/cpp_template_repeat.i | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Examples/test-suite/errors/cpp_template_repeat.i b/Examples/test-suite/errors/cpp_template_repeat.i index f170080b7..08d378223 100644 --- a/Examples/test-suite/errors/cpp_template_repeat.i +++ b/Examples/test-suite/errors/cpp_template_repeat.i @@ -4,4 +4,15 @@ template<class T> T blah(T x) { }; %template(iblah) blah<int>; %template(iiblah) blah<int>; -// The second %template instantiation above should surely be ignored with a warning, but doesn't atm + +// empty template instantiations for template functions warn (unlike for template classes) +%template() blah<double>; +%template() blah<double>; +%template() blah<double>; + +%template(sblah) blah<short>; +%template(sblah) blah<short>; + +%template() blah<const char *>; +%template() blah<const char *>; +%template(sblah) blah<const char *>; |