aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test/cover_SUITE_data/cc.erl
blob: 7eb165ef8aa2edfce6c52349c125244ffe07b314 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-module(cc).
-compile(export_all).

%% This is a dummy module used only for cover compiling. The content
%% of this module has no meaning for the test.

foo() ->
    T = erlang:time(),
    spawn(fun() -> bar(T) end).

bar(T) ->
    receive
	X ->
	    T1 = erlang:time(),
	    io:format("received ~p at ~p. Last time: ~p~n",[X,T1,T]),
	    bar(T1)
    end.