summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72932/b72932.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72932/b72932.cs')
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72932/b72932.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72932/b72932.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72932/b72932.cs
new file mode 100644
index 0000000000..5a97f0bc22
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72932/b72932.cs
@@ -0,0 +1,23 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System;
+internal unsafe class testout1
+{
+ public struct VT
+ {
+ public long a1;
+ }
+
+ public static int Main()
+ {
+ VT vt = new VT();
+ vt.a1 = 500L;
+
+ long* a0 = stackalloc long[1];
+ *a0 = -6L;
+ Console.WriteLine("Should be 500");
+ Console.WriteLine((long)(vt.a1));
+ return 100;
+ }
+}