diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-10-27 16:04:13 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-10-27 16:04:13 +0100 |
commit | f7ab0c4f16e8a7ee62b4940b8d57748c0ad2c4cb (patch) | |
tree | 843d5faa453db7238319ec653a095ae3af74ffdf /lib/syntax_tools/test/syntax_tools_SUITE_data/m2.erl | |
parent | b4978407dc587ec677ff17da9efcd4c645db7b38 (diff) | |
parent | fd0e093463831cc20b0bda7c8ed24bfd31edccee (diff) | |
download | otp-f7ab0c4f16e8a7ee62b4940b8d57748c0ad2c4cb.tar.gz otp-f7ab0c4f16e8a7ee62b4940b8d57748c0ad2c4cb.tar.bz2 otp-f7ab0c4f16e8a7ee62b4940b8d57748c0ad2c4cb.zip |
Merge branch 'egil/maps/syntax-tools/OTP-12265' into maint
* egil/maps/syntax-tools/OTP-12265:
syntax_tools: Strengthen igor tests
syntax_tools: Strengthen erl_recomment tests
syntax_tools: Strengthen erl_syntax comments tests
syntax_tools: Teach Maps to erl_syntax
syntax_tools: Fix is_literal/1 for binary
syntax_tools: Strengthen epp_dodger tests
syntax_tools: Strengthen erl_syntax tests
syntax_tools: Refactor away ?line macro
Diffstat (limited to 'lib/syntax_tools/test/syntax_tools_SUITE_data/m2.erl')
-rw-r--r-- | lib/syntax_tools/test/syntax_tools_SUITE_data/m2.erl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/syntax_tools/test/syntax_tools_SUITE_data/m2.erl b/lib/syntax_tools/test/syntax_tools_SUITE_data/m2.erl new file mode 100644 index 0000000000..781139317d --- /dev/null +++ b/lib/syntax_tools/test/syntax_tools_SUITE_data/m2.erl @@ -0,0 +1,26 @@ +%% +%% File: m2.erl +%% Author: Björn-Egil Dahlberg +%% Created: 2014-10-24 +%% + +-module(m2). + + +-export([foo/0,foo/1,foo/2, + bar/0,bar/1,bar/2, + record_update/2, record/0]). + +foo() -> ok. +foo(A) -> [item,A]. +foo(A,B) -> A + B. + +bar() -> true. +bar(A) -> {element,A}. +bar(A,B) -> A*B. + +-record(rec, {a,b}). + +record() -> #rec{a=3,b=0}. +record_update(V,#rec{a=V0}=R) -> + R#rec{a=V0+V,b=V0}. |