aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/expressions.i
blob: e38e65051ee3a50aea6d98dd9fd5bdc8082836b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%module expressions

%inline %{
struct A
{
    A() : k( 20/(5-1) ) {}
    A(int i) : k( 20/(5-1)*i /* comment */ ) {}
    int k;
    // Regression test for preprocessor bug with handling a slash immediately
    // followed by a single quote, fixed in 4.2.0.  (#2630)
    int f(int i = 64/' ') { return i; }
};
%}