Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-11-11 13:50:35 +0300
committerMarek Safar <marek.safar@gmail.com>2008-11-11 13:50:35 +0300
commit302d178ea2281dfb33ecd4608c8d673833c67a91 (patch)
treeb98df876f1bc251bfbb8747e1c660ea1f8f515ed /mcs/tests/test-692.cs
parent07cae9b141bc641f14f5502188488d58dbe1ffad (diff)
New test + update
svn path=/trunk/mcs/; revision=118482
Diffstat (limited to 'mcs/tests/test-692.cs')
-rw-r--r--mcs/tests/test-692.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/tests/test-692.cs b/mcs/tests/test-692.cs
new file mode 100644
index 00000000000..8ce44865123
--- /dev/null
+++ b/mcs/tests/test-692.cs
@@ -0,0 +1,41 @@
+using System;
+
+class Test
+{
+ static DateTime a, b, c;
+ DateTime ia, ib, ic;
+
+ static void test1 (out DateTime x)
+ {
+ x = new DateTime (85);
+ }
+
+ static void test2 (ref DateTime x)
+ {
+ x = new DateTime (999);
+ }
+
+ public static int Main ()
+ {
+ c = b = a = new DateTime (633596616517216000);
+ if (c != a)
+ return 1;
+
+ if (b != c)
+ return 2;
+
+ DateTime ia, ib, ic;
+ ic = ib = ia = new DateTime (633596616517216000);
+
+ if (ic != ia)
+ return 10;
+
+ if (ib != ic)
+ return 12;
+
+ test1 (out ia);
+ test2 (ref ia);
+
+ return 0;
+ }
+}