aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-06-30 13:44:12 +0200
committerHans Bolinder <[email protected]>2014-06-30 13:44:12 +0200
commita594da7662a70aa6e240cb2bfaf6728df831a542 (patch)
treec62201be9d7143e020d0427a4ab7be8fddaa4c88 /lib/dialyzer/test/small_SUITE_data
parenta7f2bce6e2e5486ccdb217b46b32a407cb526706 (diff)
parenta884f78ee7609b3140f5a9fb524599be4ea816d7 (diff)
downloadotp-a594da7662a70aa6e240cb2bfaf6728df831a542.tar.gz
otp-a594da7662a70aa6e240cb2bfaf6728df831a542.tar.bz2
otp-a594da7662a70aa6e240cb2bfaf6728df831a542.zip
Merge branch 'maint'
* maint: hipe: Correct pretty-printing of bitstrings
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/results/pretty_bitstring3
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/pretty_bitstring.erl8
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/results/pretty_bitstring b/lib/dialyzer/test/small_SUITE_data/results/pretty_bitstring
new file mode 100644
index 0000000000..0ad6eee766
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/results/pretty_bitstring
@@ -0,0 +1,3 @@
+
+pretty_bitstring.erl:7: Function t/0 has no local return
+pretty_bitstring.erl:8: The call binary:copy(#{#<1>(8, 1, 'integer', ['unsigned', 'big']), #<2>(8, 1, 'integer', ['unsigned', 'big']), #<3>(3, 1, 'integer', ['unsigned', 'big'])}#,2) breaks the contract (Subject,N) -> binary() when is_subtype(Subject,binary()), is_subtype(N,non_neg_integer())
diff --git a/lib/dialyzer/test/small_SUITE_data/src/pretty_bitstring.erl b/lib/dialyzer/test/small_SUITE_data/src/pretty_bitstring.erl
new file mode 100644
index 0000000000..3dbf5ab7a7
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/pretty_bitstring.erl
@@ -0,0 +1,8 @@
+%% Prettyprint bitstrings.
+
+-module(pretty_bitstring).
+
+-export([t/0]).
+
+t() ->
+ binary:copy(<<1,2,3:3>>,2).