diff options
author | Björn Gustavsson <[email protected]> | 2015-11-10 10:46:21 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-11-10 13:04:56 +0100 |
commit | 488862ddb45a8949efe5d71b7eb4a4a5e6406a07 (patch) | |
tree | f7cba4047a9818117aac062768ffb7fb55cc1631 /lib/compiler/test | |
parent | f1c449d76e4dbe2f12de05ec08809e0a86cc63b6 (diff) | |
download | otp-488862ddb45a8949efe5d71b7eb4a4a5e6406a07.tar.gz otp-488862ddb45a8949efe5d71b7eb4a4a5e6406a07.tar.bz2 otp-488862ddb45a8949efe5d71b7eb4a4a5e6406a07.zip |
Cover code for callbacks in sys_pre_expand
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/misc_SUITE.erl | 6 |
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. |