aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/receive_SUITE_data/ref_opt/yes_2.erl
blob: 6077cdcab9765959975cc27da9cce592d91efd8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
-module(yes_2).
-compile(export_all).

?MODULE() ->
    ok.

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