diff --git a/test/libsolidity/semanticTests/inlineAssembly/cstore_then_sstore_should_fail.sol b/test/libsolidity/semanticTests/inlineAssembly/cstore_then_sstore_should_fail.sol new file mode 100644 index 000000000..317d0d522 --- /dev/null +++ b/test/libsolidity/semanticTests/inlineAssembly/cstore_then_sstore_should_fail.sol @@ -0,0 +1,10 @@ +contract C { + function test() external { + assembly { + cstore(0, 1) + sstore(0, 0x1337) + } + } +} +// ---- +// test() -> FAILURE