summaryrefslogtreecommitdiff
path: root/inttest/erlc/src/behaviour
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2014-03-05 17:59:35 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2014-03-12 20:45:37 +0100
commitb2dfebab15cc92b337b9cc9e771cb7de3ed61e4a (patch)
treee796b6bd2451599cdd0143f0b58e4ae231b9e609 /inttest/erlc/src/behaviour
parentfe9d328cb5133ee91dd3bbd45849e0772bf197c5 (diff)
erlc: add test suite
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.