Backport of r122036.
* bug-461867.cs: New regression test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=122039
+2008-12-23 Rodrigo Kumpera <rkumpera@novell.com>
+
+ Backport of r122036.
+
+ * bug-461867.cs: New regression test.
+
+ * Makefile.am: Test added.
+
2008-12-19 Mark Probst <mark.probst@gmail.com>
* bug-459285.2.cs: New generic sharing test.
bug-81673.cs \
bug-81691.cs \
bug-80307.cs \
- bug-415577.cs
+ bug-415577.cs \
+ bug-461867.cs
if AMD64
TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
--- /dev/null
+using System;
+using System.Runtime.InteropServices;
+
+namespace TestApp
+{
+ public delegate char MyDelegate(int x);
+
+ class Driver
+ {
+ static char Test (int x) { return (char)x; }
+
+ static int Main()
+ {
+ MyDelegate m = Driver.Test;
+ Marshal.GetFunctionPointerForDelegate (m);
+ return 0;
+ }
+ }
+}