summaryrefslogtreecommitdiff
path: root/Examples/test-suite/constant_expr.i
blob: 8e5c8aee697686a2485e6755d0555d6756e7fb21 (plain)
1
2
3
4
5
6
7
8
9
10
11
%module constant_expr;
/* Tests of constant expressions. */

%inline %{

/* % didn't work in SWIG 1.3.40 and earlier. */
const int X = 123%7;
#define FOO 12 % 9
double d_array[12 % 9];

%}