add config option for changing cond splitting behavior (#522)

This commit is contained in:
water111
2021-05-24 19:52:19 -04:00
committed by GitHub
parent d719bf5677
commit 0f0902eabf
15 changed files with 115 additions and 46 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ std::unique_ptr<FormRegressionTest::TestData> FormRegressionTest::make_function(
// analyze function prologue/epilogue
test->func.analyze_prologue(test->file);
// build control flow graph
test->func.cfg = build_cfg(test->file, 0, test->func);
test->func.cfg = build_cfg(test->file, 0, test->func, {});
EXPECT_TRUE(test->func.cfg->is_fully_resolved());
if (!test->func.cfg->is_fully_resolved()) {
fmt::print("CFG:\n{}\n", test->func.cfg->to_dot());
+8
View File
@@ -1255,6 +1255,14 @@ TEST(GoosSpecialForms, Quote) {
}
}
TEST(GoosSpecialForms, DoubleQuote) {
Interpreter i;
e(i, "(define x ''y)");
EXPECT_EQ(e(i, "x"), "(quote y)");
e(i, "(define x `'`y)");
EXPECT_EQ(e(i, "x"), "(quote (quasiquote y))");
}
TEST(GoosSpecialForms, QuasiQuote) {
Interpreter i;
e(i, "(define x 'y)");