public void Ntf_array_i32_again() { var ntf = new NativeTypeFactory(); var a1 = ntf.ArrayOf((HExpr)BaseType.Int32, 4); var a2 = ntf.ArrayOf((HExpr)BaseType.Int32, 4); Assert.AreEqual(a1, a2, "expected to get the same handle for the same type"); }
public void Ntf_array_i32() { var ntf = new NativeTypeFactory(); var a = ntf.ArrayOf((HExpr)BaseType.Int32, 4); var arr = ntf.GetRekoType(a); Assert.AreEqual("(arr int32 4)", arr.ToString()); }