Skip to content

Commit

Permalink
Add some prefixes to make sure they are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Feb 23, 2022
1 parent ab89868 commit a55bdf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ void Test_zero_bytes() {

a.Label(ref lbll);
a.zero_bytes();
a.@lock.rep.zero_bytes();

var writer = new CodeWriterImpl();
a.Assemble(writer, 0);
Expand Down
1 change: 1 addition & 0 deletions src/rust/iced-x86/src/code_asm/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,7 @@ fn test_zero_bytes() {

a.set_label(&mut lbll).unwrap();
a.zero_bytes().unwrap();
a.lock().rep().zero_bytes().unwrap();

let bytes = a.assemble(0x1234_5678_9ABC_DEF0).unwrap();
assert_eq!(bytes, b"\x74\x02\x74\x00\x90");
Expand Down

0 comments on commit a55bdf6

Please sign in to comment.