* cli-tables-tests.md: Tests for propertymap table.
* assembly-with-cas.cs: New test file for producing tests
for property tables.
* Makefile: Add new dependencies.
svn path=/trunk/mono/; revision=133627
+2009-05-05 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * cli-tables-tests.md: Tests for propertymap table.
+
+ * assembly-with-cas.cs: New test file for producing tests
+ for property tables.
+
+ * Makefile: Add new dependencies.
+
2009-05-05 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: Tests for event table.
assembly-with-events.exe: assembly-with-events.cs
gmcs assembly-with-events.cs
+assembly-with-properties.exe: assembly-with-properties.cs
+ gmcs assembly-with-properties.cs
+
TEST_BINARIES = assembly-with-resource.exe \
assembly-with-complex-type.exe \
assembly-with-methods.exe \
assembly-with-cattr.exe \
assembly-with-cas.exe \
assembly-with-events.exe \
+ assembly-with-properties.exe \
simple-assembly.exe
--- /dev/null
+using System;
+using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
+using System.ComponentModel;
+
+public delegate void Del ();
+
+public class Class0
+{
+ public int PropA { get; set; }
+ public int PropB { set { int x = value; } }
+ public int PropC { get { return 0; } }
+}
+
+public class Class1
+{
+ public int Prop0 { get; set; }
+ public int Prop1 { get; set; }
+ public int Prop2 { get; set; }
+}
+
+public class Class2
+{
+ public int Prop0 { get; set; }
+ public int Prop1 { get; set; }
+ public int Prop2 { get; set; }
+}
+public class Class
+{
+ public static void Main ()
+ {
+
+ }
+}
#TODO check for dups
}
+property-map-table {
+ assembly assembly-with-properties.exe
+
+ #parent must be a valid typedef token
+ invalid offset table-row ( 0x15 0 ) set-ushort 0x8800
+
+ #bad propertylist
+ invalid offset table-row ( 0x15 0 ) + 2 set-ushort 0x0000
+ invalid offset table-row ( 0x15 0 ) + 2 set-ushort 0x8800
+
+ #propertylist must not be duplicated and increase monotonically
+ #property list is 1,3,7 we change the first to 4
+ invalid offset table-row ( 0x15 0 ) + 2 set-ushort 4
+}