Skip to content

Commit cb30be7

Browse files
committed
Add test showing overload rename failure
1 parent 70946c5 commit cb30be7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Examples/test-suite/fortran_naming.i

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ extern "C" int _0cboundfunc(const int _x) { return _x + 1; }
120120
%constant int _leading_underscore_with_sixty_three_characters_might_be_tricky = 63;
121121
%nofortranconst;
122122

123+
// swigc_ -prefixed name: OK if not overloaded, too long if overloaded
124+
%inline %{
125+
int this_is_a_very_long_name_but_its_ok_unless_its_overloaded() { return 0; }
126+
int this_is_a_very_long_name_but_its_bad_since_its_overloaded(int i) { return i; }
127+
float this_is_a_very_long_name_but_its_bad_since_its_overloaded(float f) { return f; }
128+
%}
129+
123130
// This class is poorly named, but the symname is OK.
124131
%inline %{
125132
template<class T>

0 commit comments

Comments
 (0)