Skip to content

Commit 5e85cf6

Browse files
committed
Fix linker error in constant_expr testcase
1 parent d2e9b80 commit 5e85cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/test-suite/constant_expr.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ isPointer = false
2121
* SWIG 3.0.4 until 4.1.0, `Unknown directive '%a'`.
2222
*/
2323
int a;
24-
int test2(int b = 9%a);
24+
int test2(int b = 9%a) { return b; }
2525

2626
%}

0 commit comments

Comments
 (0)