diff options
author | John Högberg <[email protected]> | 2018-07-18 12:21:42 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-07-18 12:21:42 +0200 |
commit | 64d7d7ab81e3c2163301a77969c75c6b73804d8b (patch) | |
tree | 88edc95a533a22ae5bf19a707c50817aa26de39c /erts/emulator/test/code_SUITE_data | |
parent | 0e9c319480d9cfb778b654bf2cd71e7bd31464f9 (diff) | |
parent | f31db22102bde44c6ee17bc756bdeb109855acea (diff) | |
download | otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.gz otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.bz2 otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.zip |
Merge pull request #1812 from michalmuskala/mm/make-fun-loader
Optimise creation of anonymous functions
Diffstat (limited to 'erts/emulator/test/code_SUITE_data')
-rw-r--r-- | erts/emulator/test/code_SUITE_data/literals.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/erts/emulator/test/code_SUITE_data/literals.erl b/erts/emulator/test/code_SUITE_data/literals.erl index 7c3b0ebe73..13c8b412b0 100644 --- a/erts/emulator/test/code_SUITE_data/literals.erl +++ b/erts/emulator/test/code_SUITE_data/literals.erl @@ -19,7 +19,8 @@ %% -module(literals). --export([a/0,b/0,huge_bignum/0,binary/0,unused_binaries/0,bits/0]). +-export([a/0,b/0,huge_bignum/0,funs/0, + binary/0,unused_binaries/0,bits/0]). -export([msg1/0,msg2/0,msg3/0,msg4/0,msg5/0]). a() -> @@ -108,3 +109,8 @@ msg2() -> {"hello","world"}. msg3() -> <<"halloj">>. msg4() -> #{ 1=> "hello", b => "world"}. msg5() -> {1,2,3,4,5,6}. + +funs() -> + %% Literal funs (in a non-literal list). + [fun ?MODULE:a/0, + fun() -> ok end]. %No environment. |