aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/test/maps_SUITE_data/maps_warn_useless_build.erl
blob: 6cb0366314372778d1c5b1dbeb3b47586ff42d5c (plain) (blame)
1
2
3
4
5
6
7
8
9
-module(maps_warn_useless_build).
-export([test/0]).

test() ->
    [#{ a => id(I)} || I <- [1,2,3]],
    ok.

%% Use this function to avoid compile-time evaluation of an expression.
id(I) -> I.