diff options
author | Hans Bolinder <[email protected]> | 2014-02-24 11:39:50 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2014-02-24 11:39:50 +0100 |
commit | bfbc7d65c3b2b3741c52047248e193f698287e47 (patch) | |
tree | d9564794b87fd6b78d573a47c6fd5b286fc37240 /lib/dialyzer/test/small_SUITE_data | |
parent | 790e3739a14e3e77ab0282d961038714d84c0fb8 (diff) | |
parent | f4bafbfdc7183b4297b96c884a61545000eb7fbd (diff) | |
download | otp-bfbc7d65c3b2b3741c52047248e193f698287e47.tar.gz otp-bfbc7d65c3b2b3741c52047248e193f698287e47.tar.bz2 otp-bfbc7d65c3b2b3741c52047248e193f698287e47.zip |
Merge branch 'hb/dialyzer/fix_on_load/OTP-11743'
* hb/dialyzer/fix_on_load/OTP-11743:
FIx handling of 'on_load' attribute
Diffstat (limited to 'lib/dialyzer/test/small_SUITE_data')
-rw-r--r-- | lib/dialyzer/test/small_SUITE_data/src/on_load.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/on_load.erl b/lib/dialyzer/test/small_SUITE_data/src/on_load.erl index 16533a9caa..7242ac2016 100644 --- a/lib/dialyzer/test/small_SUITE_data/src/on_load.erl +++ b/lib/dialyzer/test/small_SUITE_data/src/on_load.erl @@ -1,4 +1,6 @@ %%% This is to ensure that "on_load" functions are never reported as unused. +%%% In addition, all functions called by a function in an on_load attribute +%%% should be considered as called by an entry point of the module. -module(on_load). @@ -8,4 +10,7 @@ foo() -> ok. -bar() -> ok. +bar() -> gazonk(17). + +gazonk(N) when N < 42 -> gazonk(N+1); +gazonk(42) -> ok. |