diff --git a/Examples/test-suite/cpp11_type_aliasing.i b/Examples/test-suite/cpp11_type_aliasing.i index abc1642c4..ea4048408 100644 --- a/Examples/test-suite/cpp11_type_aliasing.i +++ b/Examples/test-suite/cpp11_type_aliasing.i @@ -63,12 +63,14 @@ using IntArray = Int[]; // Test that SWIG understands these new types +%{ +Int mult2(Int x) { return x * 2; } +%} %callback("%s_cb"); Int mult2(Int x); %nocallback; %inline %{ -Int mult2(Int x) { return x * 2; } IntPtr allocate_int() { return new Int(12); } void free_int(int* ptr) { delete ptr; } void inplace_mult2(IntRef x) { x *= 2; }