segfault test added - global scope operator
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
02132c13a8
commit
ba1cc80e8e
1 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
friend void ::globalscope();
|
||||||
friend int mix(A* a, B *b);
|
friend int mix(A* a, B *b);
|
||||||
virtual ~B()
|
virtual ~B()
|
||||||
{
|
{
|
||||||
|
|
@ -27,6 +28,7 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void globalscope() { B b(0); b.v=10; }
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue