From a17cdcb77dacff89de07085a2fd5ae04e74e048d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 12 Aug 2004 21:06:45 +0000 Subject: [PATCH] test fix git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6087 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/cast_operator.i | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Examples/test-suite/cast_operator.i b/Examples/test-suite/cast_operator.i index 668b35afd..88964e3b8 100644 --- a/Examples/test-suite/cast_operator.i +++ b/Examples/test-suite/cast_operator.i @@ -2,6 +2,7 @@ %rename(tochar) A::operator char*() const; %inline %{ +#include struct A { operator char*() const; @@ -9,7 +10,11 @@ operator char*() const; inline A::operator char*() const -{ return "hi"; } +{ + static char hi[16]; + strcpy(hi, "hi"); + return hi; +} %}