From d27b9fd3f50c689c9f8ab0d5ca91b8e127bb512d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 29 Oct 2004 21:07:51 +0000 Subject: [PATCH] segfault test added - global scope operator git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6546 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/friends.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/test-suite/friends.i b/Examples/test-suite/friends.i index 4085e6fd4..5ae6a7ce8 100644 --- a/Examples/test-suite/friends.i +++ b/Examples/test-suite/friends.i @@ -17,6 +17,7 @@ { } + friend void ::globalscope(); friend int mix(A* a, B *b); virtual ~B() { @@ -27,6 +28,7 @@ }; + void globalscope() { B b(0); b.v=10; } struct A {