diff options
author | Hans Bolinder <[email protected]> | 2018-01-19 12:46:08 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-01-19 12:46:08 +0100 |
commit | e6432a0c60a488c7750fcdab3a4f2821c0f35ec8 (patch) | |
tree | 90ef7ba9e8e5099ce0de015ae98c630760bc554d /lib/dialyzer/test | |
parent | 9ff28ca4095c7877f4f4a6cab4d691ba52f07372 (diff) | |
parent | 69de63049417cf7e047f035b5e086caad9dc7932 (diff) | |
download | otp-e6432a0c60a488c7750fcdab3a4f2821c0f35ec8.tar.gz otp-e6432a0c60a488c7750fcdab3a4f2821c0f35ec8.tar.bz2 otp-e6432a0c60a488c7750fcdab3a4f2821c0f35ec8.zip |
Merge branch 'maint'
* maint:
dialyzer: Fix bsl/2 bug
Diffstat (limited to 'lib/dialyzer/test')
-rw-r--r-- | lib/dialyzer/test/small_SUITE_data/src/bsL.erl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/bsL.erl b/lib/dialyzer/test/small_SUITE_data/src/bsL.erl new file mode 100644 index 0000000000..b2fdc16324 --- /dev/null +++ b/lib/dialyzer/test/small_SUITE_data/src/bsL.erl @@ -0,0 +1,13 @@ +-module(bsL). + +-export([t/0]). + +%% Found in lib/observer/test/crashdump_helper.erl. + +t() -> + Size = 60, + <<H:16/unit:8>> = erlang:md5(<<Size:32>>), + true = H < 20, + true = H > 2, + Data = ((H bsl (8*150)) div (H+7919)), + <<Data:Size/unit:8>>. |