summaryrefslogtreecommitdiff
path: root/Examples/test-suite/duplicate_parm_names.i
blob: b6c369c8c6cc878b7c5692c459b0745c8923ccb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%module duplicate_parm_names

// Testing duplicate argument name handling

%{
void fn_2parms(int, int) {}
void fn_3parms(int, int, double) {}
void fn_4parms(int, short, double, const char *) {}

struct SameParmNameCheck {
  void metho(int, short, double, const char *) {}
};
%}

void fn_2parms(int argx, int argx) {}
void fn_3parms(int p_a, int p_a, double p_c) {}
void fn_4parms(int duplicate, short duplicate, double duplicate, const char *duplicate) {}

struct SameParmNameCheck {
  void metho(int dup, short dup, double uniq, const char *dup) {}
};