@@ -71,8 +71,7 @@ void TestInstruction::instruction_to_str() {
71
71
for (size_t j = 0 ; j < pesude_code_to_string[i].pairs .size (); j++) {
72
72
Pair pair = pesude_code_to_string[i].pairs [j];
73
73
uint32_t code;
74
- Instruction::code_from_string (
75
- &code, pair.str .length (), pair.str , machine::Address (0x0 ));
74
+ Instruction::code_from_string (&code, pair.str .length (), pair.str , Address (0x0 ));
76
75
QCOMPARE (Instruction (pair.code ).to_str (), pair.str );
77
76
}
78
77
}
@@ -86,7 +85,7 @@ void TestInstruction::instruction_code_from_str() {
86
85
: code_to_string[i].alias_str ;
87
86
uint32_t code = 0 ;
88
87
Instruction::code_from_string (
89
- &code, code_to_string[i].str .length (), test_string_data, machine:: Address (0x0 ));
88
+ &code, code_to_string[i].str .length (), test_string_data, Address (0x0 ));
90
89
QCOMPARE (code, code_to_string[i].code );
91
90
}
92
91
@@ -95,11 +94,12 @@ void TestInstruction::instruction_code_from_str() {
95
94
RelocExpressionList reloc = {};
96
95
Instruction::code_from_string (
97
96
code, pesude_code_to_string[i].string_data .length (),
98
- pesude_code_to_string[i].string_data , machine:: Address (0x0 ), &reloc, nullptr , 0 , true );
97
+ pesude_code_to_string[i].string_data , Address (0x0 ), &reloc, nullptr , 0 , true );
99
98
for (size_t j = 0 ; j < pesude_code_to_string[i].pairs .size (); j++) {
100
99
Pair pair = pesude_code_to_string[i].pairs [j];
101
100
QCOMPARE (code[j], pair.code );
102
101
}
102
+ reloc.clear ();
103
103
}
104
104
}
105
105
0 commit comments