aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/misc_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-11-16 13:55:24 +0100
committerBjörn Gustavsson <[email protected]>2015-11-16 13:55:24 +0100
commit4d22457afd0aaca92c5d7357973cd0cab0e8525b (patch)
treeec5381167e6e243a602b7b2cb84f81ead527d070 /lib/compiler/test/misc_SUITE.erl
parent828867abc55c64f61dd4c0e67dc4e0ad5becf4dc (diff)
parent0a94d155e0197121fac63c8fb8ae0f7bc942dcc2 (diff)
downloadotp-4d22457afd0aaca92c5d7357973cd0cab0e8525b.tar.gz
otp-4d22457afd0aaca92c5d7357973cd0cab0e8525b.tar.bz2
otp-4d22457afd0aaca92c5d7357973cd0cab0e8525b.zip
Merge branch 'bjorn/cleanup'
* bjorn/cleanup: beam_validator: Don't allow an 'undefined' entry label in a function beam_validator: Remove obsolete DEBUG support v3_kernel: Speed up compilation of modules with many funs beam_dict: Speed up storage of funs beam_asm: Speed up assembly for modules with many exports sys_core_dsetel: Use a map instead of a dict sys_pre_expand: Cover coerce_to_float/2 Cover code for callbacks in sys_pre_expand Cover sys_pre_expand:pattern/2 sys_pre_expand: Remove uncovered clause in pat_bit_size/2 sys_pre_expand: Clean up data structures sys_pre_expand: Remove vestiges of variable usage tracking sys_pre_expand: Remove imports of ordsets functions sys_pre_expand: Remove unnecessary inclusion of erl_bits.hrl io: Make a fast code path for i/o requests
Diffstat (limited to 'lib/compiler/test/misc_SUITE.erl')
-rw-r--r--lib/compiler/test/misc_SUITE.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl
index b88abaf62d..c7c20fdbf2 100644
--- a/lib/compiler/test/misc_SUITE.erl
+++ b/lib/compiler/test/misc_SUITE.erl
@@ -38,7 +38,11 @@
-compile({no_auto_import,[byte_size/1]}).
-import(erlang,[byte_size/1]).
-
+%% Cover the code for callback handling.
+-callback must_define_this_one() -> 'ok'.
+-callback do_something_strange(atom()) -> 'ok'.
+-optional_callbacks([do_something_strange/1]).
+-optional_callbacks([ignore_me]). %Invalid; ignored.
%% Include an opaque declaration to cover the stripping of
%% opaque types from attributes in v3_kernel.