Add C implementation of test cpp_atomic_namespaced_class

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Leif Middelschulte 2012-07-26 20:20:02 +00:00
commit fca2262e28
2 changed files with 14 additions and 0 deletions

View file

@ -12,6 +12,9 @@ top_builddir = @top_builddir@/..
include $(srcdir)/../common.mk
CPP_TEST_CASES += \
cpp_atomic_namespaced_class
#
# BROKEN TEST CASES:
# default_constructor - last case fail: using %extend generates 2 ctors wrappers,

View file

@ -0,0 +1,11 @@
#include "cpp_atomic_namespaced_class/cpp_atomic_namespaced_class_proxy.h"
int main(int argc, const char *argv[])
{
myNamespace_MyClass *mc;
mc = new_myNamespace_MyClass();
delete_myNamespace_MyClass(mc);
return 0;
}