From b2dfebab15cc92b337b9cc9e771cb7de3ed61e4a Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Wed, 5 Mar 2014 17:59:35 +0100 Subject: erlc: add test suite --- inttest/erlc/src/behaviour/foo_worker.erl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 inttest/erlc/src/behaviour/foo_worker.erl (limited to 'inttest/erlc/src/behaviour') 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. -- cgit v1.1