Output experimental flag in metadata only for risky features

This commit is contained in:
Alex Beregszaszi
2017-08-11 16:38:43 +01:00
parent 4d82d4f57a
commit 2d1bab0de8
2 changed files with 28 additions and 9 deletions
+1
View File
@@ -38,6 +38,7 @@ BOOST_AUTO_TEST_CASE(metadata_stamp)
// Check that the metadata stamp is at the end of the runtime bytecode.
char const* sourceCode = R"(
pragma solidity >=0.0;
pragma experimental __testOnlyAnalysis;
contract test {
function g(function(uint) external returns (uint) x) {}
}