Skip to content

Commit

Permalink
New test.
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=144215
  • Loading branch information
marek-safar committed Oct 15, 2009
1 parent 5aa5823 commit b9d3f33
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions mcs/errors/cs0214-9.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// CS214: Pointers and fixed size buffers may only be used in an unsafe context
// Line: 21
// Compiler options: -unsafe

public unsafe delegate int* Bar ();

class X
{
unsafe static int* Test ()
{
return null;
}

static void Main ()
{
Bar b;
unsafe {
b = Test;
}

b ();
}
}

0 comments on commit b9d3f33

Please sign in to comment.