aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/pmod_SUITE_data
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-11-24 09:17:26 +0100
committerBjörn Gustavsson <[email protected]>2011-11-24 09:26:08 +0100
commitf5b7411b6f3ea3a79d7998b59c5610fa795d556a (patch)
treec1c8b9862401ad9ba7c0c1fe05a800b1aaf12c70 /lib/compiler/test/pmod_SUITE_data
parentf545894e96d5898285eee8dce812c885cf208fb7 (diff)
downloadotp-f5b7411b6f3ea3a79d7998b59c5610fa795d556a.tar.gz
otp-f5b7411b6f3ea3a79d7998b59c5610fa795d556a.tar.bz2
otp-f5b7411b6f3ea3a79d7998b59c5610fa795d556a.zip
sys_expand_pmod: Handle external funs in parameterized modules
Starting in ff432e262e65243cbc983fcb002527f8fae8c78b, sys_pre_expand passes external funs through to the downstream passes. It used to translate external funs to a call to erlang:make_fun/3. Therefore, we will now need to handle external funs in sys_expand_pmod. Noticed-by: Stavros Aronis
Diffstat (limited to 'lib/compiler/test/pmod_SUITE_data')
-rw-r--r--lib/compiler/test/pmod_SUITE_data/pmod_basic.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl b/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl
index 0d46cffe00..c6aa2d4655 100644
--- a/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl
+++ b/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl
@@ -21,6 +21,7 @@
-export([lookup/1,or_props/1,prepend/1,append/1,stupid_sum/0]).
-export([bar/1,bar_bar/1]).
-export([bc1/0, bc2/0]).
+-export([collapse/1]).
lookup(Key) ->
proplists:lookup(Key, Props).
@@ -77,3 +78,6 @@ bc1() ->
bc2() ->
<< <<A:1>> || A <- [1,0,1,0] >>.
+
+collapse(L) ->
+ lists:keymap(fun lists:sort/1, 2, L).