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

?MODULE() ->
    ok.

f() ->
    Ref = make_ref(),
    receive
	%% Artifical example to cover more code in beam_receive.
	{X,Y} when Ref =/= X, Ref =:= Y ->
	    ok
    end.