aboutsummaryrefslogblamecommitdiffstats
path: root/lib/tools/test/cover_SUITE_data/cc.erl
blob: 7eb165ef8aa2edfce6c52349c125244ffe07b314 (plain) (tree)
1
2
3
4
5
6
7
8
9
            
                     
 

                                                                    
 


                               
 





                                                                     
        
-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.