aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/constant.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-04 19:54:32 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-06-06 22:41:41 +0800
commitb2a3e165cb6a7a057af0427bd4802e52f562923d (patch)
treef54c95027270dd1f0865c6cc26cea97a2f1ac3a8 /test/libsolidity/syntaxTests/viewPureChecker/constant.sol
parent59b35fa5b21c444bce5d28b2388ef8b4f7bae929 (diff)
downloaddexon-solidity-b2a3e165cb6a7a057af0427bd4802e52f562923d.tar.gz
dexon-solidity-b2a3e165cb6a7a057af0427bd4802e52f562923d.tar.zst
dexon-solidity-b2a3e165cb6a7a057af0427bd4802e52f562923d.zip
Extract test cases from ViewPureChecker
Diffstat (limited to 'test/libsolidity/syntaxTests/viewPureChecker/constant.sol')
-rw-r--r--test/libsolidity/syntaxTests/viewPureChecker/constant.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/viewPureChecker/constant.sol b/test/libsolidity/syntaxTests/viewPureChecker/constant.sol
new file mode 100644
index 00000000..36d93497
--- /dev/null
+++ b/test/libsolidity/syntaxTests/viewPureChecker/constant.sol
@@ -0,0 +1,6 @@
+contract C {
+ uint constant x = 2;
+ function k() pure public returns (uint) {
+ return x;
+ }
+}