Add C implementation of test cpp_atomic_class_enum
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cff735b570
commit
15e8b647a2
2 changed files with 12 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ top_builddir = @top_builddir@/..
|
|||
include $(srcdir)/../common.mk
|
||||
|
||||
CPP_TEST_CASES += \
|
||||
cpp_atomic_class_enum \
|
||||
cpp_atomic_class_method \
|
||||
cpp_atomic_class_var_pub_member_atom \
|
||||
cpp_atomic_class_var_pub_member_class \
|
||||
|
|
|
|||
11
Examples/test-suite/c/cpp_atomic_class_enum_runme.c
Normal file
11
Examples/test-suite/c/cpp_atomic_class_enum_runme.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <assert.h>
|
||||
#include "cpp_atomic_class_enum/cpp_atomic_class_enum_proxy.h"
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
enum MyClass_SomeEnum myEnum = MyClass_FIRST_VALUE;
|
||||
|
||||
assert(myEnum != MyClass_SECOND_VALUE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue