summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M10/b04914/b04914.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1-M10/b04914/b04914.cs')
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1-M10/b04914/b04914.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1-M10/b04914/b04914.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M10/b04914/b04914.cs
new file mode 100644
index 0000000000..e607bdb783
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M10/b04914/b04914.cs
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System.Globalization;
+using System;
+
+namespace DefaultNamespace
+{
+ public class Bug
+ {
+ public virtual void runTest()
+ {
+ CultureInfo en = new CultureInfo("en-US");
+ Double d = Convert.ToDouble("1.0E19", en.NumberFormat);
+ Console.WriteLine("Expected value==" + d.ToString("E", en.NumberFormat));
+ UInt64 l = (UInt64)d;
+ Console.WriteLine("Returned value==" + l.ToString("E", en.NumberFormat));
+ if (d.ToString("E", en.NumberFormat).Equals(l.ToString("E", en.NumberFormat)))
+ Console.WriteLine("Test passed");
+ else
+ Console.WriteLine("Test FAiLED");
+ }
+
+ public static int Main(String[] args)
+ {
+ new Bug().runTest();
+ return 100;
+ }
+ }
+}