From 096aaddfcf9c74189536eba11f35caad47ffa337 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 27 May 2009 22:04:19 +0000 Subject: [PATCH] add test for $descriptor() macro git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11237 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/typemap_subst.i | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Examples/test-suite/typemap_subst.i b/Examples/test-suite/typemap_subst.i index 67d412442..d5a8416db 100644 --- a/Examples/test-suite/typemap_subst.i +++ b/Examples/test-suite/typemap_subst.i @@ -50,6 +50,14 @@ (void)stardesc; (void)ampdesc; } + { /* Test descriptor macro */ + void *desc = $descriptor(const struct xyzzy **); + void *stardesc = $descriptor(const struct xyzzy *); + void *ampdesc = $descriptor(const struct xyzzy ***); + (void)desc; + (void)stardesc; + (void)ampdesc; + } $1 = ($ltype) temp; }