Add missing file.
authorZoltan Varga <vargaz@gmail.com>
Fri, 9 Dec 2011 09:42:45 +0000 (10:42 +0100)
committerZoltan Varga <vargaz@gmail.com>
Fri, 9 Dec 2011 09:44:30 +0000 (10:44 +0100)
mono/mini/Makefile.am
mono/mini/aot-tests.cs [new file with mode: 0644]

index 094e74a4fa770bbbf444be947f0f707fd1a16ee5..54adb8456e0f1e063c6b4fe1c8f18a6225bd8e5f 100644 (file)
@@ -395,7 +395,8 @@ test_sources =                      \
        test.cs                 \
        generics.cs             \
        generics-variant-types.il\
-       basic-simd.cs
+       basic-simd.cs \
+       aot-tests.cs
 
 regtests=basic.exe basic-float.exe basic-long.exe basic-calls.exe objects.exe arrays.exe basic-math.exe exceptions.exe iltests.exe devirtualization.exe generics.exe basic-simd.exe
 
@@ -541,8 +542,6 @@ libmonosgen_static_la_LIBADD = $(sgenstatic_libs) $(MONO_DTRACE_OBJECT)
 nodist_libmono_static_la_SOURCES = $(nodist_libmono_la_SOURCES)
 nodist_libmono_static_la_CFLAGS = $(mono_CFLAGS)
 
-BURGSRC= $(common_BURGSRC) $(arch_BURGSRC)
-
 libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit
 
 libmonoinclude_HEADERS = jit.h
@@ -697,7 +696,7 @@ BUILT_SOURCES = version.h
 endif
 
 CLEANFILES= $(BUILT_SOURCES) *.exe *.dll
-EXTRA_DIST = $(common_BURGSRC) TestDriver.cs ldscript ldscript.mono \
+EXTRA_DIST = TestDriver.cs ldscript ldscript.mono \
        genmdesc.pl                             \
        $(test_sources)                         \
        $(x86_sources) cpu-x86.md               \
diff --git a/mono/mini/aot-tests.cs b/mono/mini/aot-tests.cs
new file mode 100644 (file)
index 0000000..9c8e933
--- /dev/null
@@ -0,0 +1,26 @@
+using System;
+using System.Text;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
+
+/*
+ * Regression tests for the AOT/FULL-AOT code.
+ */
+
+class Tests {
+
+       static int Main () {
+               return TestDriver.RunTests (typeof (Tests));
+       }
+
+       public delegate void ArrayDelegate (int[,] arr);
+
+       static int test_0_array_delegate_full_aot () {
+               ArrayDelegate d = delegate (int[,] arr) {
+               };
+               int[,] a = new int[5, 6];
+               d.BeginInvoke (a, null, null);
+               return 0;
+       }
+}