summaryrefslogtreecommitdiff
path: root/Examples/test-suite/immutable_values.i
blob: 1c19786615a1ac080a17f06cd503e02b274a7b18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// test to make sure setters are not generated for constants

%module immutable_values


%immutable;
%mutable;

%inline %{
#define ABC -11
enum count {Zero, One, Two}; %}


%clearimmutable;

%inline %{
#define XYZ -22
enum backwards {Tre=3, Duo=2, Uno=1};
%}