aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/special/blockhash.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/smtCheckerTests/special/blockhash.sol')
-rw-r--r--test/libsolidity/smtCheckerTests/special/blockhash.sol14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/special/blockhash.sol b/test/libsolidity/smtCheckerTests/special/blockhash.sol
new file mode 100644
index 00000000..d0f263eb
--- /dev/null
+++ b/test/libsolidity/smtCheckerTests/special/blockhash.sol
@@ -0,0 +1,14 @@
+pragma experimental SMTChecker;
+
+contract C
+{
+ function f() public payable {
+ assert(blockhash(2) > 0);
+ }
+}
+// ----
+// Warning: (86-98): Assertion checker does not yet support this special variable.
+// Warning: (86-98): Assertion checker does not yet implement this type.
+// Warning: (86-102): Assertion checker does not yet implement the type bytes32 for comparisons
+// Warning: (86-102): Internal error: Expression undefined for SMT solver.
+// Warning: (79-103): Assertion violation happens here