git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
24 lines
615 B
C#
24 lines
615 B
C#
using System;
|
|
using default_constructorNamespace;
|
|
|
|
public class runme
|
|
{
|
|
static void Main()
|
|
{
|
|
// calling protected destructor test
|
|
try {
|
|
using (G g = new G()) {
|
|
}
|
|
throw new Exception("Protected destructor exception should have been thrown");
|
|
} catch (MethodAccessException) {
|
|
}
|
|
|
|
// calling private destructor test
|
|
try {
|
|
using (FFF f = new FFF()) {
|
|
}
|
|
throw new Exception("Private destructor exception should have been thrown");
|
|
} catch (MethodAccessException) {
|
|
}
|
|
}
|
|
}
|