diff options
author | Björn Gustavsson <[email protected]> | 2011-03-29 06:38:41 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-03-29 06:38:41 +0200 |
commit | a76e46c02ae57a39178a5c663e2c0c5c4cbfb30f (patch) | |
tree | a1e5fa2504e64df032edc4e67e000aad76fc60d4 /lib/compiler/test | |
parent | 9f78db422a8facfaad909a656ffabeb27f8fe2fd (diff) | |
parent | c6b0d6dce5709c61e549e850c2615fd288e27ba9 (diff) | |
download | otp-a76e46c02ae57a39178a5c663e2c0c5c4cbfb30f.tar.gz otp-a76e46c02ae57a39178a5c663e2c0c5c4cbfb30f.tar.bz2 otp-a76e46c02ae57a39178a5c663e2c0c5c4cbfb30f.zip |
Merge branch 'bjorn/compiler/eliminate-warning/OTP-9152' into dev
* bjorn/compiler/eliminate-warning/OTP-9152:
sys_core_fold: Eliminate incorrect warning
sys_core_fold: Be careful to preserve annotations while optimizing
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/warnings_SUITE.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl index 8cc3ca4199..dd18a6e1a3 100644 --- a/lib/compiler/test/warnings_SUITE.erl +++ b/lib/compiler/test/warnings_SUITE.erl @@ -453,6 +453,16 @@ effect(Config) when is_list(Config) -> true -> ok end, ok. + + m8(A, B) -> + case {A,B} of + V -> V + end, + ok. + + m9(Bs) -> + [{B,ok} = {B,foo:bar(B)} || B <- Bs], + ok. ">>, [], {warnings,[{5,sys_core_fold,{no_effect,{erlang,is_integer,1}}}, |