Skip to content

Commit cf8ed7c

Browse files
committed
eof: Add semantic test setting consistency check.
1 parent 36aa865 commit cf8ed7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/libsolidity/SemanticTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ SemanticTest::SemanticTest(
113113
eofEnabled ? toString(CompileViaYul::True) : toString(CompileViaYul::Also)
114114
);
115115

116+
std::string bytecodeFormatString = m_reader.stringSetting("bytecodeFormat", "unset");
117+
if (bytecodeFormatString == ">=EOFv1" && compileViaYul == CompileViaYul::False)
118+
BOOST_THROW_EXCEPTION(std::runtime_error("Compilation to EOF requires using Yul IR"));
119+
116120
if (compileViaYul == CompileViaYul::False && eofEnabled)
117121
m_shouldRun = false;
118122

0 commit comments

Comments
 (0)