mirror of
https://github.com/open-goal/jak-project
synced 2026-07-09 14:55:51 -04:00
[Decompiler] Stack Variables (#338)
* clean up type analysis * get everything set up * basic stack variables working * partial load fix * most of matrix * add offline tests
This commit is contained in:
@@ -11,8 +11,9 @@ TEST_F(FormRegressionTest, StringTest) {
|
||||
"L101:\n"
|
||||
" jr ra\n"
|
||||
" daddu sp, sp, r0";
|
||||
auto test = make_function(func, TypeSpec("function", {TypeSpec("none")}), false, false, "",
|
||||
{{"L100", "testing-string"}, {"L101", "testing-string-2"}});
|
||||
TestSettings settings;
|
||||
settings.strings = {{"L100", "testing-string"}, {"L101", "testing-string-2"}};
|
||||
auto test = make_function(func, TypeSpec("function", {TypeSpec("none")}), settings);
|
||||
|
||||
EXPECT_EQ(test->file.get_goal_string_by_label(test->file.get_label_by_name("L100")),
|
||||
"testing-string");
|
||||
|
||||
Reference in New Issue
Block a user