From 344ab4e1e08c7e2de029624f60146250460f7046 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 2 Nov 2004 22:45:29 +0000 Subject: [PATCH] fix ConstMethods order for ruby git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6634 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/default_args.i | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Examples/test-suite/default_args.i b/Examples/test-suite/default_args.i index cd891148a..579d1592e 100644 --- a/Examples/test-suite/default_args.i +++ b/Examples/test-suite/default_args.i @@ -180,12 +180,6 @@ Klass constructorcall(const Klass& k = Klass()) { return k; } } %} -// const methods -// runtime test needed to check that the const method is called -struct ConstMethods { - int coo(double d = 0.0) const; -}; - %{ struct ConstMethods { int coo(double d = 0.0) { return 10; } @@ -193,6 +187,13 @@ struct ConstMethods { }; %} +// const methods +// runtime test needed to check that the const method is called +struct ConstMethods { + int coo(double d = 0.0) const; +}; + + // Default args with C linkage %inline