aboutsummaryrefslogblamecommitdiffstats
path: root/lib/compiler/test/receive_SUITE_data/ref_opt/yes_4.erl
blob: d1ba4832c7bcd001179b40767e7787649774ce6e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                            
-module(yes_4).
-compile(export_all).

?MODULE() ->
    ok.

f(Pid, Msg) ->
    Ref = make_ref(),
    catch do_send(Pid, Msg),
    receive
	{Ref,Reply} ->
	    Reply
    end.

do_send(Pid, Msg) ->
    Pid ! Msg.