aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2012-01-09 15:46:08 +0100
committerHans Bolinder <[email protected]>2012-01-09 15:46:08 +0100
commitd8ca0eb6de482a9a4bb5d67bc33232352c3ec83e (patch)
treecfae6c83131e939abb3e012b99b7fd6124a4bcc0 /lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl
parentf9ca630a95e1e2adb1b225bfb69e3101678183f3 (diff)
parent477fd95a1f404175c133f30a9e10e7a27ce400b8 (diff)
downloadotp-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_3.erl')
-rw-r--r--lib/dialyzer/test/user_SUITE_data/src/nowarn_unused_function_3.erl16
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.