summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M02/b20785/trep.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M02/b20785/trep.cs')
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M02/b20785/trep.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M02/b20785/trep.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M02/b20785/trep.cs
new file mode 100644
index 0000000000..07169857d3
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M02/b20785/trep.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System;
+using System.Threading;
+
+internal struct Gen
+{
+ public void Target<U>()
+ {
+ }
+ public static void DelegateTest<U>()
+ {
+ ThreadStart d = new ThreadStart(new Gen().Target<U>);
+ IAsyncResult ar = d.BeginInvoke(null, null);
+ WaitHandle.WaitAll(new System.Threading.WaitHandle[] { ar.AsyncWaitHandle });
+ }
+}
+
+public class Test
+{
+ public static int Main()
+ {
+ Gen.DelegateTest<object>();
+ return 100;
+ }
+}
+
+