tests to check constants don't attempt to generate setters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b3763be563
commit
27dda1ec1f
2 changed files with 22 additions and 0 deletions
|
|
@ -326,6 +326,7 @@ C_TEST_CASES += \
|
|||
enums \
|
||||
extern_declaration \
|
||||
function_typedef \
|
||||
immutable \
|
||||
inctest \
|
||||
lextype \
|
||||
li_carrays \
|
||||
|
|
|
|||
21
Examples/test-suite/immutable.i
Normal file
21
Examples/test-suite/immutable.i
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// test to make sure setters are not generated for constants
|
||||
|
||||
%module immutable
|
||||
|
||||
|
||||
%immutable;
|
||||
%mutable;
|
||||
|
||||
%inline %{
|
||||
#define ABC -11
|
||||
enum count {zero, one, two};
|
||||
%}
|
||||
|
||||
|
||||
%clearimmutable;
|
||||
|
||||
%inline %{
|
||||
#define XYZ -22
|
||||
enum backwards {tre=3, duo=2, uno=1};
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue