diff options
author | Björn Gustavsson <[email protected]> | 2015-04-20 10:19:55 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-22 10:12:32 +0200 |
commit | 37996d71a60f8aa4dd1078a7903098aa656b9e35 (patch) | |
tree | 88fbbff8e18794cf4d2ec1cd109c25274941c880 /lib/compiler/test/core_fold_SUITE_data | |
parent | 81354ca6651ff23ecff8dc93e1db13c115bb8369 (diff) | |
download | otp-37996d71a60f8aa4dd1078a7903098aa656b9e35.tar.gz otp-37996d71a60f8aa4dd1078a7903098aa656b9e35.tar.bz2 otp-37996d71a60f8aa4dd1078a7903098aa656b9e35.zip |
test suite: Always place .core files in data directories
For tidiness, always place .core files in data directories.
Diffstat (limited to 'lib/compiler/test/core_fold_SUITE_data')
-rw-r--r-- | lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core | 18 | ||||
-rw-r--r-- | lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core | 11 |
2 files changed, 29 insertions, 0 deletions
diff --git a/lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core b/lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core new file mode 100644 index 0000000000..c46906b2ed --- /dev/null +++ b/lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core @@ -0,0 +1,18 @@ +module 'nested_call_in_case' ['a'/2] + attributes [] + +'a'/2 = + fun (_x,_y) -> + case call 'erlang':'>' + (call 'erlang':'length' + (_x), _y) of + <'true'> when 'true' -> + 'yes' + <'false'> when 'true' -> + 'no' + ( <_omega> when 'true' -> + primop 'match_fail' + ('if_clause') + -| ['compiler_generated'] ) + end +end diff --git a/lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core b/lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core new file mode 100644 index 0000000000..e06587c936 --- /dev/null +++ b/lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core @@ -0,0 +1,11 @@ +module 'unused_multiple_values_error' ['hello'/1] + attributes [] +'hello'/1 = + fun (_cor0) -> + do + case _cor0 of + <_cor0> when 'true' -> + <'ok','ok'> + end + 'ok' +end |