diff options
author | Björn Gustavsson <[email protected]> | 2014-03-04 12:26:39 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-03-04 12:26:39 +0100 |
commit | 54a5b030d15b27710c3a54ea363a5b6ec4c2f7c8 (patch) | |
tree | 74759739df57401d92f411ccad2d47ef1decb336 /lib/compiler/test | |
parent | 6ddc3479026b9a8d77ff62125b222abed7f6b5ed (diff) | |
parent | 0b016da203177f93e3d5b52ea66d0824d7e5b662 (diff) | |
download | otp-54a5b030d15b27710c3a54ea363a5b6ec4c2f7c8.tar.gz otp-54a5b030d15b27710c3a54ea363a5b6ec4c2f7c8.tar.bz2 otp-54a5b030d15b27710c3a54ea363a5b6ec4c2f7c8.zip |
Merge branch 'nox/compiler/sys_core_fold-erlang-is_record-3'
* nox/compiler/sys_core_fold-erlang-is_record-3:
Do not mark all calls to erlang:is_record/3 as safe
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/record_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compiler/test/record_SUITE.erl b/lib/compiler/test/record_SUITE.erl index c9f5a2053e..f736e14bf6 100644 --- a/lib/compiler/test/record_SUITE.erl +++ b/lib/compiler/test/record_SUITE.erl @@ -369,6 +369,14 @@ record_test_3(Config) when is_list(Config) -> ?line false = is_record(id(#barf{}), id(barf), id(42)), ?line false = is_record(id(#barf{}), id(foo), id(6)), + Rec = id(#barf{}), + Good = id(barf), + Bad = id(foo), + Size = id(6), + + true = is_record(Rec, Good, Size) orelse error, + error = is_record(Rec, Bad, Size) orelse error, + ok. record_access_in_guards(Config) when is_list(Config) -> |