mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests
This commit is contained in:
committed by
chriseth
parent
2b09fa14e1
commit
c032ad3379
@@ -8,3 +8,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 5017: (63-90): The identifier "linkersymbol" is reserved and can not be used.
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
assembly {
|
||||
let linkersymbol := 1
|
||||
let datacopy := 1
|
||||
let swap16 := 1
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 5017: (67-79): The identifier "linkersymbol" is reserved and can not be used.
|
||||
// DeclarationError 5017: (95-103): The identifier "datacopy" is reserved and can not be used.
|
||||
// DeclarationError 5017: (119-125): The identifier "swap16" is reserved and can not be used.
|
||||
@@ -0,0 +1,16 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
assembly {
|
||||
let shl := 1
|
||||
}
|
||||
assembly {
|
||||
pop(shl(1, 2))
|
||||
}
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: =byzantium
|
||||
// ----
|
||||
// DeclarationError 5017: (67-70): The identifier "shl" is reserved and can not be used.
|
||||
// TypeError 6612: (107-110): The "shl" instruction is only available for Constantinople-compatible VMs (you are currently compiling for "byzantium").
|
||||
// TypeError 3950: (107-116): Expected expression to evaluate to one value, but got 0 values instead.
|
||||
@@ -0,0 +1,14 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
assembly {
|
||||
let shl := 1
|
||||
}
|
||||
assembly {
|
||||
pop(shl(1, 2))
|
||||
}
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
// ParserError 5568: (67-70): Cannot use builtin function name "shl" as identifier name.
|
||||
Reference in New Issue
Block a user