summaryrefslogtreecommitdiff
path: root/inttest/erlc/src/behaviour
diff options
context:
space:
mode:
Diffstat (limited to 'inttest/erlc/src/behaviour')
-rw-r--r--inttest/erlc/src/behaviour/foo_worker.erl14
1 files changed, 14 insertions, 0 deletions
diff --git a/inttest/erlc/src/behaviour/foo_worker.erl b/inttest/erlc/src/behaviour/foo_worker.erl
new file mode 100644
index 0000000..307c69a
--- /dev/null
+++ b/inttest/erlc/src/behaviour/foo_worker.erl
@@ -0,0 +1,14 @@
+-module(foo_worker).
+
+-ifdef(NO_CALLBACK_ATTRIBUTE).
+
+-export([behaviour_info/1]).
+
+behaviour_info(callbacks) -> [{status, 0}];
+behaviour_info(_) -> undefined.
+
+-else.
+
+-callback status() -> 'idle' | 'busy'.
+
+-endif.