diff options
author | Hans Bolinder <[email protected]> | 2011-12-19 16:04:27 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-12-22 13:01:52 +0100 |
commit | 477fd95a1f404175c133f30a9e10e7a27ce400b8 (patch) | |
tree | c3a28c6b72333c9e25f44537f038ceac7a76ea4f /lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl | |
parent | 01f35546b9dbaac053a80418b38105a1acc35540 (diff) | |
download | otp-477fd95a1f404175c133f30a9e10e7a27ce400b8.tar.gz otp-477fd95a1f404175c133f30a9e10e7a27ce400b8.tar.bz2 otp-477fd95a1f404175c133f30a9e10e7a27ce400b8.zip |
Handle nowarn_unused_function like the compiler does
Diffstat (limited to 'lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl')
-rw-r--r-- | lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl b/lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl new file mode 100644 index 0000000000..604c5e436b --- /dev/null +++ b/lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl @@ -0,0 +1,16 @@ +%% Test that option 'nowarn_unused_funcion' works similarly in +%% Dialyzer as in the compiler. + +-module(nowarn_unused_function_3). + +-compile({warn_unused_function,[{f1,1},{f2,1}]}). +-compile({nowarn_unused_function,[{f3,1}]}). + +f1(_) -> + a. + +f2(_) -> + a. + +f3(_) -> + a. |