aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-01-12 15:38:25 +0100
committerHans Bolinder <[email protected]>2017-01-12 15:38:25 +0100
commite36147a9f7bc7c238416ec9cf4e0fff04e604f1c (patch)
tree4222a975190337d3f3fed60f00e07d1ecfa03182 /lib/dialyzer/test
parentb487a4b703b6e6cefda06d508e4dc192b27281d4 (diff)
parenta2c5a9252ea2dd8382238ea4ec4e0850f4a15167 (diff)
downloadotp-e36147a9f7bc7c238416ec9cf4e0fff04e604f1c.tar.gz
otp-e36147a9f7bc7c238416ec9cf4e0fff04e604f1c.tar.bz2
otp-e36147a9f7bc7c238416ec9cf4e0fff04e604f1c.zip
Merge branch 'maint'
* maint: stdlib: Correct signatures of functions in erl_parse
Diffstat (limited to 'lib/dialyzer/test')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/anno.erl18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/anno.erl b/lib/dialyzer/test/small_SUITE_data/src/anno.erl
new file mode 100644
index 0000000000..70f1d42141
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/anno.erl
@@ -0,0 +1,18 @@
+-module(anno).
+
+%% OTP-14131
+
+-export([t1/0, t2/0, t3/0]).
+
+t1() ->
+ A = erl_parse:anno_from_term({attribute, 1, module, my_test}),
+ compile:forms([A], []).
+
+t2() ->
+ A = erl_parse:new_anno({attribute, 1, module, my_test}),
+ compile:forms([A], []).
+
+t3() ->
+ A = erl_parse:new_anno({attribute, 1, module, my_test}),
+ T = erl_parse:anno_to_term(A),
+ {attribute, 1, module, my_test} = T.