diff options
author | Patrik Nyblom <[email protected]> | 2010-05-28 15:07:08 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-06-02 16:47:28 +0200 |
commit | b72cac25f9f68285508465456fd71a58107b922e (patch) | |
tree | 2800957bb0af8480042d22be4433e59128a643a8 /lib/compiler/test/test_lib.erl | |
parent | 634dd378030292abeec98e7f332e57c5d36e13ef (diff) | |
download | otp-b72cac25f9f68285508465456fd71a58107b922e.tar.gz otp-b72cac25f9f68285508465456fd71a58107b922e.tar.bz2 otp-b72cac25f9f68285508465456fd71a58107b922e.zip |
Add some testcases to compiler to verify that overriding really happens
Diffstat (limited to 'lib/compiler/test/test_lib.erl')
-rw-r--r-- | lib/compiler/test/test_lib.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/compiler/test/test_lib.erl b/lib/compiler/test/test_lib.erl index 05236ee010..d8799952a9 100644 --- a/lib/compiler/test/test_lib.erl +++ b/lib/compiler/test/test_lib.erl @@ -19,8 +19,8 @@ -module(test_lib). -include("test_server.hrl"). - --export([recompile/1,opt_opts/1,get_data_dir/1,smoke_disasm/1,p_run/2]). +-compile({no_auto_import,[binary_part/2]}). +-export([recompile/1,opt_opts/1,get_data_dir/1,smoke_disasm/1,p_run/2,binary_part/2]). recompile(Mod) when is_atom(Mod) -> case whereis(cover_server) of @@ -104,3 +104,7 @@ p_run_loop(Test, List, N, Refs0, Errors0, Ws0) -> Refs = Refs0 -- [Ref], p_run_loop(Test, List, N, Refs, Errors, Ws) end. + +%% This is for the misc_SUITE:override_bif testcase +binary_part(_A,_B) -> + dummy. |