aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/bs_match_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-03-25 10:50:00 +0100
committerBjörn Gustavsson <[email protected]>2011-03-25 10:50:00 +0100
commitd090e8e1c02f55853f202e30e0f664b4d15f77ea (patch)
tree18e8a3786ae1309f92472e3bde52a70441a61685 /lib/compiler/test/bs_match_SUITE.erl
parentba7d76fcb401e831c1279fc22c96856603ff4c48 (diff)
parentc7188f410f5d2688783dfbb850e1e55718885f87 (diff)
downloadotp-d090e8e1c02f55853f202e30e0f664b4d15f77ea.tar.gz
otp-d090e8e1c02f55853f202e30e0f664b4d15f77ea.tar.bz2
otp-d090e8e1c02f55853f202e30e0f664b4d15f77ea.zip
Merge branch 'bjorn/compiler/bin-size-bug/OTP-9134' into dev
* bjorn/compiler/bin-size-bug/OTP-9134: v3_core: Fix variable incorrectly unbound after binary match v3_core: Fix style and indentation
Diffstat (limited to 'lib/compiler/test/bs_match_SUITE.erl')
-rw-r--r--lib/compiler/test/bs_match_SUITE.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/compiler/test/bs_match_SUITE.erl b/lib/compiler/test/bs_match_SUITE.erl
index 1e3c670fb8..9184e14cb2 100644
--- a/lib/compiler/test/bs_match_SUITE.erl
+++ b/lib/compiler/test/bs_match_SUITE.erl
@@ -142,7 +142,14 @@ otp_5269(Config) when is_list(Config) ->
[X || <<X:X>> <- [<<1:32>>,<<2:32>>,<<3:8>>]] end,
%% "binsize variable" ^
[1,2]),
-
+ ?line check(fun() ->
+ (fun (<<A:1/binary, B:8/integer, _C:B/binary>>) ->
+ case A of
+ B -> wrong;
+ _ -> ok
+ end
+ end)(<<1,2,3,4>>) end,
+ ok),
ok.
null_fields(Config) when is_list(Config) ->