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

/* Default arguments for C code */
int foo1(int x = 42 || 3);
int foo43(int x = 42 | 3);

%{
int foo1(int x) {
  return x;
}
int foo43(int x) {
  return x;
}
%}