diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-07-12 16:08:38 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-07-12 16:08:38 +0200 |
commit | 8b83bc0b54b728cf9179ef3fa0e7610f99f7a6a4 (patch) | |
tree | d631f90daaea9237f5b7d467a5a5b7eb71639bc6 /lib/compiler/test/receive_SUITE.erl | |
parent | 3b7a6ffddc819bf305353a593904cea9e932e7dc (diff) | |
download | otp-8b83bc0b54b728cf9179ef3fa0e7610f99f7a6a4.tar.gz otp-8b83bc0b54b728cf9179ef3fa0e7610f99f7a6a4.tar.bz2 otp-8b83bc0b54b728cf9179ef3fa0e7610f99f7a6a4.zip |
compiler: Test literal binary matching
The following regression was introduced in 19.0:
foo(bar, <<"x">>) -> 1;
foo(_, <<"x">>) -> 2;
foo(_, <<"y">>) -> 3;
foo(_, _) -> fail.
The call foo(bar,<<"y">>) would errorneous return 'fail' instead of 3.
A testcase in match_SUITE has been added to verify this.
Diffstat (limited to 'lib/compiler/test/receive_SUITE.erl')
0 files changed, 0 insertions, 0 deletions