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:
Diffstat (limited to 'mcs/ilasm/tests/test-uint.il')
-rw-r--r--mcs/ilasm/tests/test-uint.il32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-uint.il b/mcs/ilasm/tests/test-uint.il
new file mode 100644
index 00000000000..9d65b0ebc53
--- /dev/null
+++ b/mcs/ilasm/tests/test-uint.il
@@ -0,0 +1,32 @@
+//Test for keywords : uint8, uint16, uint32 & uint64
+//Should get parsed as unsigned int8 .. etc
+//
+//uint8 in marshal (..) should get parsed as native types
+
+.assembly Test
+{
+}
+
+.namespace MonoTest
+{
+ .class private auto autochar beforefieldinit ConsoleApp
+ extends [mscorlib]System.Object
+ {
+ .field private marshal (uint8) int32 a0
+ .field private marshal (uint16) int32 a1
+ .field private marshal (uint32) int32 a2
+ .field private marshal (uint64) int64 a3
+
+ .method assembly hidebysig static void Test() cil managed
+ {
+ // Code size 74 (0x4a)
+ .maxstack 2
+
+ .locals init (uint8 V_0,
+ uint16 V_1,
+ uint32 V_2,
+ uint64 V_3)
+ ret
+ }
+ }
+}