aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/andor_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-03-14 11:53:34 +0100
committerBjörn Gustavsson <[email protected]>2014-03-14 11:53:34 +0100
commit92be9deadf3cb217f60f0e4dd8c6ff626918b2f1 (patch)
tree1ba878d3631c0fd04f63cc3287dc0c5a1bf3669d /lib/compiler/test/andor_SUITE.erl
parentdde1023b527eecaddb0c398eeed11df4e834f994 (diff)
parent3abbbeec85268f243b7c97f569ad4da40babd8c9 (diff)
downloadotp-92be9deadf3cb217f60f0e4dd8c6ff626918b2f1.tar.gz
otp-92be9deadf3cb217f60f0e4dd8c6ff626918b2f1.tar.bz2
otp-92be9deadf3cb217f60f0e4dd8c6ff626918b2f1.zip
Merge branch 'nox/compiler/beam_bool-mixed-boolean'
* nox/compiler/beam_bool-mixed-boolean: Properly detect reused boolean values in beam_bool
Diffstat (limited to 'lib/compiler/test/andor_SUITE.erl')
-rw-r--r--lib/compiler/test/andor_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/test/andor_SUITE.erl b/lib/compiler/test/andor_SUITE.erl
index d79696df38..b5408ecd8f 100644
--- a/lib/compiler/test/andor_SUITE.erl
+++ b/lib/compiler/test/andor_SUITE.erl
@@ -171,6 +171,8 @@ t_and_or(Config) when is_list(Config) ->
false = ?GUARD(erlang:'not'(erlang:'and'(bar, True))),
false = ?GUARD(erlang:'not'(erlang:'not'(erlang:'and'(bar, True)))),
+ true = (fun (X = true) when X or true or X -> true end)(True),
+
ok.
t_andalso(Config) when is_list(Config) ->