Permalink
Browse files

In ilasm/tests:

	* test-array.il: New. Test for tokenizing 0...8

In ilasm/scanner:
	* NumberHelper.cs (NumberHelper.Build): Set dec_found to false, if a '..' is
	found after a number so that it is parsed as INT64 and not FLOAT64.
	Fix #76977.

svn path=/trunk/mcs/; revision=54355
  • Loading branch information...
radical committed Dec 14, 2005
1 parent d6138e0 commit d9c59eecda41ab3350eb6016389545cad7616475
Showing with 51 additions and 0 deletions.
  1. +6 −0 mcs/ilasm/scanner/ChangeLog
  2. +1 −0 mcs/ilasm/scanner/NumberHelper.cs
  3. +4 −0 mcs/ilasm/tests/ChangeLog
  4. +40 −0 mcs/ilasm/tests/test-array.il
@@ -1,3 +1,9 @@
+2005-12-14 Ankit Jain <jankit@novell.com>
+
+ * NumberHelper.cs (NumberHelper.Build): Set dec_found to false, if a '..' is
+ found after a number so that it is parsed as INT64 and not FLOAT64.
+ Fix #76977.
+
2005-12-14 Ankit Jain <jankit@novell.com>
* ILTables.cs (keywords): Add uint8, uint16, uint32 and uint64 keywords.
@@ -113,6 +113,7 @@ public override string Build ()
if (ch == '.' && peek == '.') {
num = num.Substring (0, num.Length-1);
reader.Unread ('.');
+ dec_found = false;
} else if (ch == '.') {
num += '0';
}
@@ -1,3 +1,7 @@
+2005-12-14 Ankit Jain <jankit@novell.com>
+
+ * test-array.il: New. Test for tokenizing 0...8
+
2005-12-14 Ankit Jain <jankit@novell.com>
* test-uint.il: New. Test for keywords uint8, uint16, uint32 & uint64.
@@ -0,0 +1,40 @@
+//Test for tokenizing : 0...8
+//Bug# 76977
+
+.namespace MonoTest
+{
+.class private auto autochar beforefieldinit ConsoleApp extends
+[mscorlib]System.Object
+{
+ .method assembly hidebysig static void
+ Test() cil managed
+ {
+ // Code size 74 (0x4a)
+ .maxstack 2
+
+ .locals init (unsigned int8[0...8] V_0)
+
+ ret
+ }
+}
+}
+//Test for tokenizing : 0...8
+//Bug# 76977
+
+.namespace MonoTest
+{
+.class private auto autochar beforefieldinit ConsoleApp extends
+[mscorlib]System.Object
+{
+ .method assembly hidebysig static void
+ Test() cil managed
+ {
+ // Code size 74 (0x4a)
+ .maxstack 2
+
+ .locals init (unsigned int8[0...8] V_0)
+
+ ret
+ }
+}
+}

0 comments on commit d9c59ee

Please sign in to comment.