summaryrefslogtreecommitdiff
path: root/Examples/test-suite/using_namespace.i
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2004-10-26 00:22:50 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2004-10-26 00:22:50 +0000
commitbb900b3e101a94eb46160ff40c1f10c35562002f (patch)
tree1a19ac6de3a17870cff3e747c70246d05c252f82 /Examples/test-suite/using_namespace.i
parente2f5c7674ced15590bd6c8563fa5ce7a77dcff70 (diff)
downloadswig-bb900b3e101a94eb46160ff40c1f10c35562002f.tar.gz
more using+namespaces cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6507 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/using_namespace.i')
-rw-r--r--Examples/test-suite/using_namespace.i13
1 files changed, 7 insertions, 6 deletions
diff --git a/Examples/test-suite/using_namespace.i b/Examples/test-suite/using_namespace.i
index 8b1e9b7e0..da0c4d692 100644
--- a/Examples/test-suite/using_namespace.i
+++ b/Examples/test-suite/using_namespace.i
@@ -19,6 +19,11 @@
{
return 1;
}
+
+ int value2() const
+ {
+ return 2;
+ }
};
}
@@ -43,12 +48,8 @@ namespace hello
{
struct hi1 : private hello::Hi< hello::Hello, hi0 >
{
- // This works
- // using hello::Hi< hello::Hello, hi::hi0 >::value1;
-
- // This doesn't
- using hello::Hi< hello::Hello, hi0 >::value1;
-
+ using hello::Hi< hello::Hello, hi::hi0 >::value1;
+ using hello::Hi< hello::Hello, hi0 >::value2;
};
}