diff options
Diffstat (limited to 'Examples/test-suite/template_ns2.i')
-rw-r--r-- | Examples/test-suite/template_ns2.i | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Examples/test-suite/template_ns2.i b/Examples/test-suite/template_ns2.i new file mode 100644 index 000000000..f35d32654 --- /dev/null +++ b/Examples/test-suite/template_ns2.i @@ -0,0 +1,16 @@ +// Tests compilation of uninstantiated templates in a namespace + +%module template_ns2 + +%inline %{ + +namespace foo { + template<class T> class bar { + }; + bar<int> *test1(bar<int> *x) { return x; } + typedef int Integer; + + bar<Integer *> *test2(bar<Integer *> *x) { return x; } +} +%} + |