summaryrefslogtreecommitdiff
path: root/tests/src/Loader/classloader/regressions/583649/vsw583649.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/Loader/classloader/regressions/583649/vsw583649.cs')
-rw-r--r--tests/src/Loader/classloader/regressions/583649/vsw583649.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/src/Loader/classloader/regressions/583649/vsw583649.cs b/tests/src/Loader/classloader/regressions/583649/vsw583649.cs
new file mode 100644
index 0000000000..01595fba11
--- /dev/null
+++ b/tests/src/Loader/classloader/regressions/583649/vsw583649.cs
@@ -0,0 +1,30 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+// This is regression test for VSW 583649
+// We were AVing due to checking whether the struct ValueType147 is marshalable.
+// The struct contains a literal field and we should ignore marshaling data attached to literals and statics
+
+using System;
+
+public class Type_Class42_Driver
+{
+
+ public static int Main()
+ {
+ try
+ {
+ Console.WriteLine("Instantiating: Class42_0...");
+ Class42 Class42_0 = new Class42();
+
+ Console.WriteLine("PASS");
+ return 100;
+ }
+ catch (Exception e)
+ {
+ Console.WriteLine("FAIL: Caught unexpected exception: " + e.Message);
+ return 101;
+ }
+ }
+}