From 54e2ad073fe2b9a29da48effea9ed83dd7773df7 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 15 Nov 2021 08:00:46 +0000 Subject: [PATCH] Fix cpp11_type_aliasing test Ordering fix for Guile wrappers to compile --- Examples/test-suite/cpp11_type_aliasing.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }