public void FindNoOutParams() { Assert.AreEqual(0, UsedIdentifierFinder.Find(null, m.Fn("foo", m.Out(PrimitiveType.Ptr32, m.Local32("tmp")))).Count); }
public void FindId() { Assert.AreEqual(1, UsedIdentifierFinder.Find(null, m.Local(PrimitiveType.Word16, "loc3")).Count); }
public void FindIdsInBinOp() { Assert.AreEqual(2, UsedIdentifierFinder.Find(null, m.IAdd( m.Local32("loc2"), m.Local32("loc1"))).Count); }
public void FindNone() { Assert.AreEqual(0, UsedIdentifierFinder.Find(null, m.Int32(3)).Count); }