changeset 1593:8cda65846a87

* tests/cxxsupp.cxx: Allow inline function to be correctly inlined.
author jlarmour
date Fri, 16 Apr 2004 03:33:05 +0000
parents a9676dbe50b5
children edb4ac2e0d6b
files packages/infra/current/ChangeLog packages/infra/current/tests/cxxsupp.cxx
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/packages/infra/current/ChangeLog
+++ b/packages/infra/current/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-16  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* tests/cxxsupp.cxx: Allow inline function to be correctly inlined.
+
 2004-04-15  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/cyg_type.h: added CYG_ATTRIB_ALIGN_MAX and
--- a/packages/infra/current/tests/cxxsupp.cxx
+++ b/packages/infra/current/tests/cxxsupp.cxx
@@ -84,6 +84,11 @@ void Pure::impure_fun1()
     diag_printf("%s(%d) called\n",__PRETTY_FUNCTION__,instance);
 }
 
+inline void Pure::inline_fun1()
+{
+    diag_printf("%s(%d) called\n",__PRETTY_FUNCTION__,instance);
+}
+
 //==========================================================================
 
 class Derived : public Pure
@@ -169,11 +174,6 @@ cyg_start( void )
 
 //==========================================================================
 
-void Pure::inline_fun1()
-{
-    diag_printf("%s(%d) called\n",__PRETTY_FUNCTION__,instance);
-}
-
 #else
 
 __externC void