summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2023-03-01 21:08:15 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2023-03-01 21:08:15 +0000
commite2ff5571207e7468eb1a510f2b6b1a62d9a14584 (patch)
tree06d64cae989949714c4c6583693a02ec9773f18c
parent9924c5c3e14f24896351a26064ab22aa0a024a4a (diff)
downloadswig-e2ff5571207e7468eb1a510f2b6b1a62d9a14584.tar.gz
Update partial specialization test
-rw-r--r--Examples/test-suite/template_partial_specialization.i15
1 files changed, 7 insertions, 8 deletions
diff --git a/Examples/test-suite/template_partial_specialization.i b/Examples/test-suite/template_partial_specialization.i
index 4a0458a74..fd7c73326 100644
--- a/Examples/test-suite/template_partial_specialization.i
+++ b/Examples/test-suite/template_partial_specialization.i
@@ -111,22 +111,21 @@ template <typename T, int N> struct ThreeParm<T, N, N> { void a3(
%template(ThreeParmInt) ThreeParm<int, 0, 0>;
-#if 0
-// TODO fix:
%inline %{
-//namespace S {
+namespace S {
template<typename T> struct X { void a() {} };
template<typename T> struct X<T *> { void b() {} };
-// template<> struct X<int *> { void c() {} };
-//}
+ template<> struct X<int *> { void c() {} };
+}
%}
-namespace AA { // thinks X is in AA namespace
+namespace S {
%template(X2) X<int *>;
};
-#endif
#if 0
+// TODO fix:
+%inline %{
namespace Space {
}
template<typename T> struct Vector {
@@ -138,7 +137,7 @@ template<typename T> struct Vector {
template<typename T> struct Vector<T *> {
};
*/
-//}
+%}
%template(VectorIntPtr) Space::Vector<int *>; // should fail as Vector is in global namespace
// is this a regression - no fails in 1.3.40 too