aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/andor_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-02-03 13:38:54 +0100
committerBjörn Gustavsson <[email protected]>2015-02-12 13:14:37 +0100
commit0910d13d2077af731a5e1eeed4ac3c11da8a329b (patch)
tree7756db77539b28c1bdf174b42a20c26cca6cb7f1 /lib/compiler/test/andor_SUITE.erl
parenta13841ec7ef3365b5d263afd1c4398952a6844a1 (diff)
downloadotp-0910d13d2077af731a5e1eeed4ac3c11da8a329b.tar.gz
otp-0910d13d2077af731a5e1eeed4ac3c11da8a329b.tar.bz2
otp-0910d13d2077af731a5e1eeed4ac3c11da8a329b.zip
sys_core_fold: Refactor type information access
Introduce access functions to hide the low-level details of how type information is implemented.
Diffstat (limited to 'lib/compiler/test/andor_SUITE.erl')
-rw-r--r--lib/compiler/test/andor_SUITE.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/compiler/test/andor_SUITE.erl b/lib/compiler/test/andor_SUITE.erl
index 22aa19522d..3199440d84 100644
--- a/lib/compiler/test/andor_SUITE.erl
+++ b/lib/compiler/test/andor_SUITE.erl
@@ -173,7 +173,13 @@ t_and_or(Config) when is_list(Config) ->
true = (fun (X = true) when X or true or X -> true end)(True),
- ok.
+ Tuple = id({a,b}),
+ case Tuple of
+ {_,_} ->
+ {'EXIT',{badarg,_}} = (catch true and Tuple)
+ end,
+
+ ok.
t_andalso(Config) when is_list(Config) ->
Bs = [true,false],