aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/bs_construct_SUITE.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-08-23 10:57:50 +0200
committerFredrik Gustafsson <[email protected]>2012-08-23 10:57:50 +0200
commitd3ba4c96e621d4e68e38926f051aadd2b0869dc9 (patch)
treed4fc0f35f41d9c9e1674af29510e797a118220fc /lib/compiler/test/bs_construct_SUITE.erl
parent064b42237d891d5fdcb6c1a351980b8291437618 (diff)
parente7720fe2b2a1f09af70e74b54442f72f84609a31 (diff)
downloadotp-d3ba4c96e621d4e68e38926f051aadd2b0869dc9.tar.gz
otp-d3ba4c96e621d4e68e38926f051aadd2b0869dc9.tar.bz2
otp-d3ba4c96e621d4e68e38926f051aadd2b0869dc9.zip
Merge branch 'maint' of super:otp into maint
* 'maint' of super:otp: Revert "Merge branch 'nox/compile-column-numbers' into maint" compiler: Warn if the size of a binary segment is invalid Allow non-ASCII characters in Xref filanmes Add powerpc dso xcomp file
Diffstat (limited to 'lib/compiler/test/bs_construct_SUITE.erl')
-rw-r--r--lib/compiler/test/bs_construct_SUITE.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler/test/bs_construct_SUITE.erl b/lib/compiler/test/bs_construct_SUITE.erl
index 31c7890f26..e8b30f44ce 100644
--- a/lib/compiler/test/bs_construct_SUITE.erl
+++ b/lib/compiler/test/bs_construct_SUITE.erl
@@ -468,6 +468,10 @@ opt(Config) when is_list(Config) ->
?line {'EXIT',_} = (catch <<<<23,56,0,2>>:64/float>>),
?line {'EXIT',_} = (catch <<<<23,56,0,2:7>>/binary>>),
+ %% Test constant propagation - there should be a warning.
+ BadSz = 2.5,
+ {'EXIT',_} = (catch <<<<N,56,0,2>>:BadSz/binary>>),
+
case id(false) of
true -> ?line opt_dont_call_me();
false -> ok