diff options
Diffstat (limited to 'lib/compiler/test/bs_construct_SUITE.erl')
| -rw-r--r-- | lib/compiler/test/bs_construct_SUITE.erl | 4 | 
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 | 
