diff options
author | Hans Bolinder <[email protected]> | 2012-01-09 15:46:08 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2012-01-09 15:46:08 +0100 |
commit | d8ca0eb6de482a9a4bb5d67bc33232352c3ec83e (patch) | |
tree | cfae6c83131e939abb3e012b99b7fd6124a4bcc0 /lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_1.erl | |
parent | f9ca630a95e1e2adb1b225bfb69e3101678183f3 (diff) | |
parent | 477fd95a1f404175c133f30a9e10e7a27ce400b8 (diff) | |
download | otp-d8ca0eb6de482a9a4bb5d67bc33232352c3ec83e.tar.gz otp-d8ca0eb6de482a9a4bb5d67bc33232352c3ec83e.tar.bz2 otp-d8ca0eb6de482a9a4bb5d67bc33232352c3ec83e.zip |
Merge branch 'hb/dialyzer/nowarn_unused_function/OTP-9833' into maint
* hb/dialyzer/nowarn_unused_function/OTP-9833:
Handle nowarn_unused_function like the compiler does
Diffstat (limited to 'lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_1.erl')
-rw-r--r-- | lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_1.erl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_1.erl b/lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_1.erl new file mode 100644 index 0000000000..fcce532f73 --- /dev/null +++ b/lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_1.erl @@ -0,0 +1,18 @@ +%% Test that option 'nowarn_unused_funcion' works similarly in +%% Dialyzer as in the compiler. + +-module(nowarn_unused_function_1). + +-compile(warn_unused_function). + +-compile({nowarn_unused_function,f1/1}). +f1(_) -> + a. + +-compile({nowarn_unused_function,[{f2,1}]}). +f2(_) -> + a. + +-compile({warn_unused_function,[{f3,1}]}). +f3(_) -> + a. |