diff options
author | Björn Gustavsson <[email protected]> | 2014-06-17 10:40:44 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-06-17 10:40:44 +0200 |
commit | a182917681b28ec7129adf73d863fa6b11670c10 (patch) | |
tree | 88beb1146624320bf9f84e2f15e79cc73b7ebfc1 /lib/compiler/test/warnings_SUITE.erl | |
parent | 2ad1bf818447c8a7ff380e93f43a7a6105a77d6f (diff) | |
parent | 9a9b77c72f95123ac0e6d1dab7f907a4f0f2e6a6 (diff) | |
download | otp-a182917681b28ec7129adf73d863fa6b11670c10.tar.gz otp-a182917681b28ec7129adf73d863fa6b11670c10.tar.bz2 otp-a182917681b28ec7129adf73d863fa6b11670c10.zip |
Merge branch 'bjorn/compiler/fix-latin1-fallback/OTP-11987' into maint
* bjorn/compiler/fix-latin1-fallback/OTP-11987:
Fix handling of latin1 characters in false ifdef branches
Diffstat (limited to 'lib/compiler/test/warnings_SUITE.erl')
-rw-r--r-- | lib/compiler/test/warnings_SUITE.erl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl index ad4ad91f74..0637041873 100644 --- a/lib/compiler/test/warnings_SUITE.erl +++ b/lib/compiler/test/warnings_SUITE.erl @@ -662,6 +662,20 @@ latin1_fallback(Conf) when is_list(Conf) -> {warnings,[{1,compile,reparsing_invalid_unicode}]} }], [] = run(Conf, Ts2), + + Ts3 = [{latin1_fallback3, + %% Test that the compiler fall backs to latin-1 with + %% a warning if a file has no encoding and does not + %% contain correct UTF-8 sequences. + <<"-ifdef(NOTDEFINED). + t(_) -> \"",246,"\"; + t(x) -> ok. + -endif. + ">>, + [], + {warnings,[{2,compile,reparsing_invalid_unicode}]}}], + [] = run(Conf, Ts3), + ok. %%% |