[jit] Fix using conv.u with string.
[mono.git] / mono / mini / iltests.il
index 30419d9178a1397dfea214d7105bf364b2f8363a..1bc5a2cf720e6ea557da34f5fc621c3d13875b96 100644 (file)
@@ -3091,4 +3091,15 @@ L_3:
     IL_000c:  ret
   }
 
+  .method public hidebysig static int32 test_104_conv_u_and_string() cil managed
+  {
+    .maxstack  8
+       ldstr "hello"
+       conv.u
+       call int32 [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::get_OffsetToStringData()
+       add
+       ldind.u2
+       ret
+  }
+
 }