aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/anno.erl
blob: 70f1d42141cbac4286145f9ce02f3a6a3f7c2269 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.