diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 38d7124c0..ddaa81d8e 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -4807,7 +4807,9 @@ BOOST_AUTO_TEST_CASE(non_payable_constructor) BOOST_AUTO_TEST_CASE(warn_nonpresent_pragma) { - char const* text = "contract C {}"; + char const* text = R"( + contract C {} + )"; auto sourceAndError = parseAnalyseAndReturnError(text, true, false); BOOST_REQUIRE(!sourceAndError.second.empty()); BOOST_REQUIRE(!!sourceAndError.first);