diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/117_shift_warn_literal_base_2.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/117_shift_warn_literal_base_2.sol | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/117_shift_warn_literal_base_2.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/117_shift_warn_literal_base_2.sol new file mode 100644 index 00000000..954d1943 --- /dev/null +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/117_shift_warn_literal_base_2.sol @@ -0,0 +1,6 @@ +contract test { + function f() pure public returns(uint) { + uint8 x = 100; + return uint8(10) << x; + } +} |