projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New test.
[mono.git]
/
mono
/
tests
/
cas
/
demand
/
selfpermit.cs
1
using System;
2
using System.Security;
3
using System.Security.Permissions;
4
5
public class Program {
6
7
[SecurityPermission (SecurityAction.PermitOnly, UnmanagedCode=true)]
8
[SecurityPermission (SecurityAction.Demand, ControlAppDomain=true)]
9
static int Test ()
10
{
11
Console.WriteLine ("*0* Expected call to Test()");
12
return 0;
13
}
14
15
static int Main ()
16
{
17
return Test ();
18
}
19
}