aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2012-03-13 17:27:50 +0100
committerStavros Aronis <[email protected]>2012-03-14 23:33:29 +0100
commit3cc9dc31c5935168051286d524618b2b64795498 (patch)
tree1e9e98ede5098929ee7bbbc5bb47d0bcb687e2ff /lib/dialyzer/test
parentc6a8074bf0e81a97cdd924943f1ad53ea2a05520 (diff)
downloadotp-3cc9dc31c5935168051286d524618b2b64795498.tar.gz
otp-3cc9dc31c5935168051286d524618b2b64795498.tar.bz2
otp-3cc9dc31c5935168051286d524618b2b64795498.zip
Ensure that -on_load functions are not reported as unused
Diffstat (limited to 'lib/dialyzer/test')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/on_load.erl11
1 files changed, 11 insertions, 0 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
new file mode 100644
index 0000000000..16533a9caa
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/on_load.erl
@@ -0,0 +1,11 @@
+%%% This is to ensure that "on_load" functions are never reported as unused.
+
+-module(on_load).
+
+-export([foo/0]).
+
+-on_load(bar/0).
+
+foo() -> ok.
+
+bar() -> ok.